-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
545 lines (545 loc) · 18.6 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
{
"icon": "./icons/icon.png",
"name": "rgss-script-editor",
"displayName": "RGSS Script Editor",
"description": "An extension that allows to use Visual Studio Code as the code editor for RPG Maker game projects",
"author": {
"name": "SnowSzn",
"url": "https://github.com/SnowSzn"
},
"publisher": "SnowSzn",
"license": "GPL-3.0-only",
"keywords": [
"Ruby Game Scripting System",
"RGSS",
"RGSS1",
"RGSS2",
"RGSS3",
"RPGMaker",
"RPG Maker Script Editor",
"RPG Maker Script Extractor",
"RPG Maker",
"RPG Maker XP",
"RPG Maker VX",
"RPG Maker VX Ace"
],
"repository": {
"url": "https://github.com/SnowSzn/rgss-script-editor"
},
"bugs": {
"url": "https://github.com/SnowSzn/rgss-script-editor/issues"
},
"version": "1.4.1",
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:Game.ini"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "rgss-script-editor.setProjectFolder",
"title": "Set Project Folder",
"category": "RGSS Script Editor",
"icon": "$(folder)"
},
{
"command": "rgss-script-editor.openProjectFolder",
"title": "Open Project Folder",
"category": "RGSS Script Editor",
"icon": "$(folder-opened)"
},
{
"command": "rgss-script-editor.extractScripts",
"title": "Extract Scripts",
"category": "RGSS Script Editor",
"icon": "$(arrow-down)"
},
{
"command": "rgss-script-editor.importScripts",
"title": "Import Scripts From Bundle File",
"category": "RGSS Script Editor",
"icon": "$(file-add)"
},
{
"command": "rgss-script-editor.createScriptLoader",
"title": "Create Script Loader",
"category": "RGSS Script Editor",
"icon": "$(note)"
},
{
"command": "rgss-script-editor.createBackupBundleFile",
"title": "Create a Back Up With All Scripts",
"category": "RGSS Script Editor",
"icon": "$(archive)"
},
{
"command": "rgss-script-editor.createBundleFile",
"title": "Create a Bundle File From Enabled Scripts",
"category": "RGSS Script Editor",
"icon": "$(package)"
},
{
"command": "rgss-script-editor.createSelectedBundleFile",
"title": "Create a Bundle File From Selected Scripts",
"category": "RGSS Script Editor",
"icon": "$(package)"
},
{
"command": "rgss-script-editor.compileBundleFile",
"title": "Compile Enabled Scripts",
"category": "RGSS Script Editor",
"icon": "$(package)"
},
{
"command": "rgss-script-editor.runGame",
"title": "Run Game",
"category": "RGSS Script Editor",
"icon": "$(run)"
},
{
"command": "rgss-script-editor.processGameException",
"title": "Check Last Game Exception",
"category": "RGSS Script Editor",
"icon": "$(warning)"
},
{
"command": "rgss-script-editor.chooseEditorMode",
"title": "Choose Editor Mode",
"category": "RGSS Script Editor",
"icon": "$(insert)"
},
{
"command": "rgss-script-editor.openLoadOrder",
"title": "Open Load Order File",
"category": "RGSS Script Editor",
"icon": "$(tasklist)"
},
{
"command": "rgss-script-editor.sectionCreate",
"title": "Create Section...",
"category": "RGSS Script Editor",
"icon": "$(new-file)"
},
{
"command": "rgss-script-editor.sectionDelete",
"title": "Delete Section/s...",
"category": "RGSS Script Editor",
"icon": "$(trash)"
},
{
"command": "rgss-script-editor.sectionRename",
"title": "Rename Section...",
"category": "RGSS Script Editor",
"icon": "$(edit)"
},
{
"command": "rgss-script-editor.sectionMove",
"title": "Move Section...",
"category": "RGSS Script Editor",
"icon": "$(move)"
},
{
"command": "rgss-script-editor.sectionCopy",
"title": "Copy Section/s...",
"category": "RGSS Script Editor",
"icon": "$(clippy)"
},
{
"command": "rgss-script-editor.sectionPaste",
"title": "Paste Section/s...",
"category": "RGSS Script Editor",
"icon": "$(clippy)"
},
{
"command": "rgss-script-editor.sectionToggleLoad",
"title": "Toggle Section/s Load Status On/Off...",
"category": "RGSS Script Editor",
"icon": "$(arrow-swap)"
},
{
"command": "rgss-script-editor.sectionToggleCollapse",
"title": "Toggle Section Collapse Status...",
"category": "RGSS Script Editor",
"icon": "$(arrow-both)"
},
{
"command": "rgss-script-editor.sectionRevealInVSCodeExplorer",
"title": "Reveal in Explorer...",
"category": "RGSS Script Editor",
"icon": "$(eye)"
},
{
"command": "rgss-script-editor.sectionOpenInExplorer",
"title": "Reveal In File Explorer...",
"category": "RGSS Script Editor",
"icon": "$(search)"
}
],
"configuration": [
{
"title": "RGSS Script Editor",
"properties": {
"rgssScriptEditor.debug.logToConsole": {
"type": "boolean",
"default": true,
"description": "Enables this extension to log information to a VSCode output channel.",
"order": 0
},
"rgssScriptEditor.debug.logToFile": {
"type": "boolean",
"default": false,
"description": "Enables this extension to log information to a file inside the project's folder.",
"order": 1
},
"rgssScriptEditor.extension.quickStart": {
"type": "boolean",
"default": true,
"description": "Enables the extension's quick start mode.",
"order": 10
},
"rgssScriptEditor.extension.autoReveal": {
"type": "boolean",
"default": true,
"description": "Allows the extension to reveal the active script file on the extension's script editor view.",
"order": 11
},
"rgssScriptEditor.extension.filesEndOfLine": {
"type": "string",
"enum": [
"auto",
"\r\n",
"\n"
],
"enumDescriptions": [
"Auto mode uses the appropiate EOL type based on the operating system",
"CRLF",
"LF"
],
"default": "auto",
"description": "Choose the type of end of line that the extension will use for files.",
"order": 12
},
"rgssScriptEditor.extension.recreateScriptLoader": {
"type": "boolean",
"default": true,
"description": "Whether to re-create the script loader when a project is opened or not (Recommended: ON).",
"order": 13
},
"rgssScriptEditor.extension.importScriptsOverwrite": {
"type": "boolean",
"default": false,
"description": "Whether to overwrite existing scripts or not when importing scripts from a bundle file.",
"order": 15
},
"rgssScriptEditor.external.backUpsFolder": {
"type": "string",
"default": "./.rgss-script-editor/backups",
"description": "The relative path within the project's folder where all backups will be saved.",
"order": 30
},
"rgssScriptEditor.external.scriptsFolder": {
"type": "string",
"default": "./Scripts",
"description": "The relative path within the project's folder where all scripts will be extracted.",
"order": 31
},
"rgssScriptEditor.external.extensionLogFileFolder": {
"type": "string",
"default": "./.rgss-script-editor",
"description": "The relative path within the project's folder where the extension log file is created.",
"order": 40
},
"rgssScriptEditor.external.gameLogFileFolder": {
"type": "string",
"default": "./.rgss-script-editor",
"description": "The relative path within the project's folder where the game log file is created.",
"order": 41
},
"rgssScriptEditor.external.scriptsCompileFolder": {
"type": "string",
"default": "./.rgss-script-editor/dist",
"description": "The relative path within the project's folder where the compiled scripts bundle file is saved.",
"order": 45
},
"rgssScriptEditor.gameplay.gameExecutablePath": {
"type": "string",
"default": "./Game.exe",
"description": "The relative path to the game executable inside the project folder.",
"order": 50
},
"rgssScriptEditor.gameplay.useWine": {
"type": "string",
"default": "wine",
"description": "Sets the command to invoke Wine to run the game executable. (Linux Only!)",
"order": 51
},
"rgssScriptEditor.gameplay.runGameBehavior": {
"type": "string",
"enum": [
"nothing",
"kill and run",
"allow multiple"
],
"enumDescriptions": [
"This is the default RPG Maker behavior (You need to close the game before running it again)",
"Kills the game executable and runs it again automatically",
"Allows multiple game processes running at the same time"
],
"default": "nothing",
"description": "Choose how the game executable is handled when it is already running.",
"order": 55
},
"rgssScriptEditor.gameplay.automaticArgumentsDetection": {
"type": "boolean",
"default": true,
"description": "Enables automatic arguments detection mode. If enabled, the extension will automatically choose the appropiate arguments based on the RPG Maker version detected.",
"order": 60
},
"rgssScriptEditor.gameplay.editorTestMode": {
"type": "boolean",
"default": true,
"description": "Enables test (debug) mode.",
"order": 61
},
"rgssScriptEditor.gameplay.nativeConsole": {
"type": "boolean",
"default": true,
"description": "Enables RPG Maker native console. (RPG Maker VX Ace only!)",
"order": 62
},
"rgssScriptEditor.gameplay.customArguments": {
"type": "string",
"default": "",
"description": "Set your own custom arguments here separated by a whitespace (You must disable 'auto. arguments detection' behavior to use this!)",
"order": 63
},
"rgssScriptEditor.gameplay.gameExceptionAutoProcess": {
"type": "boolean",
"default": false,
"description": "Allows the extension to auto-process the last detected exception.",
"order": 70
},
"rgssScriptEditor.gameplay.gameExceptionShowInEditor": {
"type": "boolean",
"default": true,
"description": "Allows the extension to show a markdown file besides the active editor with the exception backtrace information.",
"order": 71
}
}
}
],
"keybindings": [
{
"command": "rgss-script-editor.setProjectFolder",
"key": "F6",
"when": "workspaceFolderCount > 0"
},
{
"command": "rgss-script-editor.runGame",
"key": "F12",
"when": "rgss-script-editor.openedFolder"
},
{
"command": "rgss-script-editor.compileBundleFile",
"key": "CTRL+F5",
"when": "rgss-script-editor.extractedScripts"
},
{
"command": "rgss-script-editor.sectionCreate",
"key": "insert",
"when": "focusedView == 'rgss-script-editor.editorView'"
},
{
"command": "rgss-script-editor.sectionDelete",
"key": "delete",
"when": "focusedView == 'rgss-script-editor.editorView'"
},
{
"command": "rgss-script-editor.sectionRename",
"key": "F2",
"when": "focusedView == 'rgss-script-editor.editorView'"
},
{
"command": "rgss-script-editor.sectionCopy",
"key": "CTRL+C",
"when": "focusedView == 'rgss-script-editor.editorView'"
},
{
"command": "rgss-script-editor.sectionPaste",
"key": "CTRL+V",
"when": "focusedView == 'rgss-script-editor.editorView'"
},
{
"command": "rgss-script-editor.sectionToggleLoad",
"key": "F4",
"when": "focusedView == 'rgss-script-editor.editorView'"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "rgss-script-editor",
"icon": "./icons/views/icon.svg",
"title": "RGSS Script Editor"
}
]
},
"views": {
"rgss-script-editor": [
{
"id": "rgss-script-editor.editorView",
"icon": "./icons/views/icon.svg",
"contextualTitle": "RGSS Script Editor",
"name": "Editor"
}
]
},
"viewsWelcome": [
{
"view": "rgss-script-editor.editorView",
"contents": "There is no folder open in Visual Studio Code.\nYou should open a RPG Maker project folder to start this extension.\n[Open Folder](command:vscode.openFolder)",
"when": "workspaceFolderCount <= 0"
},
{
"view": "rgss-script-editor.editorView",
"contents": "A folder is currently open.\nYou can select the folder to set it as the active RPG Maker folder using the button below.\n[Set Active Project Folder](command:rgss-script-editor.setProjectFolder)",
"when": "workspaceFolderCount == 1 && !rgss-script-editor.openedFolder"
},
{
"view": "rgss-script-editor.editorView",
"contents": "There is more than one folder open in Visual Studio Code.\nYou can select a folder to set it as the active RPG Maker folder using the button below.\n[Set Active Project Folder](command:rgss-script-editor.setProjectFolder)",
"when": "workspaceFolderCount > 1 && !rgss-script-editor.openedFolder"
},
{
"view": "rgss-script-editor.editorView",
"contents": "To use this extension you must extract the contents of the RPG Maker bundled file.\nA new folder with all script files extracted will be created inside the folder.\nOnce all scripts are extracted, you can start using this editor\n[Extract Scripts](command:rgss-script-editor.extractScripts)",
"when": "rgss-script-editor.openedFolder && !rgss-script-editor.extractedScripts"
}
],
"menus": {
"view/title": [
{
"command": "rgss-script-editor.chooseEditorMode",
"when": "view == rgss-script-editor.editorView",
"group": "navigation"
},
{
"command": "rgss-script-editor.openLoadOrder",
"when": "view == rgss-script-editor.editorView",
"group": "navigation"
},
{
"command": "rgss-script-editor.sectionCreate",
"when": "view == rgss-script-editor.editorView",
"group": "1"
},
{
"command": "rgss-script-editor.processGameException",
"when": "view == rgss-script-editor.editorView",
"group": "2"
},
{
"command": "rgss-script-editor.createScriptLoader",
"when": "view == rgss-script-editor.editorView",
"group": "3"
},
{
"command": "rgss-script-editor.createBundleFile",
"when": "view == rgss-script-editor.editorView",
"group": "4"
},
{
"command": "rgss-script-editor.createBackupBundleFile",
"when": "view == rgss-script-editor.editorView",
"group": "4"
},
{
"command": "rgss-script-editor.createSelectedBundleFile",
"when": "view == rgss-script-editor.editorView",
"group": "4"
},
{
"command": "rgss-script-editor.importScripts",
"when": "view == rgss-script-editor.editorView",
"group": "5"
}
],
"view/item/context": [
{
"command": "rgss-script-editor.sectionRename",
"when": "view == rgss-script-editor.editorView",
"group": "1"
},
{
"command": "rgss-script-editor.sectionToggleLoad",
"when": "view == rgss-script-editor.editorView",
"group": "2"
},
{
"command": "rgss-script-editor.sectionCreate",
"when": "view == rgss-script-editor.editorView",
"group": "3"
},
{
"command": "rgss-script-editor.sectionDelete",
"when": "view == rgss-script-editor.editorView",
"group": "3"
},
{
"command": "rgss-script-editor.sectionCopy",
"when": "view == rgss-script-editor.editorView",
"group": "4"
},
{
"command": "rgss-script-editor.sectionPaste",
"when": "view == rgss-script-editor.editorView",
"group": "4"
},
{
"command": "rgss-script-editor.createSelectedBundleFile",
"when": "view == rgss-script-editor.editorView",
"group": "5"
},
{
"command": "rgss-script-editor.sectionRevealInVSCodeExplorer",
"when": "view == rgss-script-editor.editorView",
"group": "6"
},
{
"command": "rgss-script-editor.sectionOpenInExplorer",
"when": "view == rgss-script-editor.editorView",
"group": "6"
}
]
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"dependencies": {
"@hyrious/marshal": "^0.3.2"
},
"devDependencies": {
"@types/mocha": "^10.0.3",
"@types/node": "^18.19.3",
"@types/vscode": "^1.84.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vscode/test-electron": "^2.3.6",
"eslint": "^8.52.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^5.2.2"
}
}