-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
559 lines (559 loc) · 17.1 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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
{
"name": "opengoal",
"displayName": "OpenGOAL",
"description": "OpenGOAL Support for VSCode",
"publisher": "opengoal",
"version": "0.20.0",
"engines": {
"vscode": "^1.89.0"
},
"categories": [
"Programming Languages"
],
"icon": "img/logo.png",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/open-goal/opengoal-vscode"
},
"main": "dist/main.js",
"scripts": {
"format": "npx prettier --write .",
"format:check": "npx prettier --check .",
"postinstall": "patch-package",
"wasm-update": "node ./copy-static-assets.js",
"vscode:prepublish": "npm run wasm-update && esbuild ./src/extension.ts --bundle --outfile=dist/main.js --external:vscode --format=cjs --platform=node --minify",
"esbuild": "npm run wasm-update && esbuild ./src/extension.ts --bundle --outfile=dist/main.js --external:vscode --format=cjs --platform=node --sourcemap",
"dev": "npm run wasm-update && esbuild ./src/extension.ts --bundle --outfile=dist/main.js --external:vscode --format=cjs --platform=node --sourcemap --watch"
},
"devDependencies": {
"@electron/rebuild": "^3.6.0",
"@types/follow-redirects": "^1.14.4",
"@types/glob": "^8.1.0",
"@types/node": "^20.12.12",
"@types/vscode": "^1.89.0",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@vscode/vsce": "^2.26.1",
"esbuild": "^0.21.4",
"patch-package": "^8.0.0",
"prettier": "3.2.5",
"tree-sitter-cli": "^0.22.6",
"typescript": "^5.4.5"
},
"dependencies": {
"comment-json": "^4.2.3",
"fast-glob": "^3.3.2",
"follow-redirects": "^1.15.6",
"parinfer": "^3.13.1",
"promise-socket": "^7.0.0",
"tree-sitter-opengoal": "^1.0.1",
"vscode-languageclient": "^9.0.1",
"web-tree-sitter": "^0.22.6"
},
"activationEvents": [],
"contributes": {
"commands": [
{
"command": "opengoal.switchFile",
"title": "OpenGOAL - Switch File"
},
{
"command": "opengoal.openLogs",
"title": "OpenGOAL - Open Logs"
},
{
"command": "opengoal.decomp.openLogs",
"title": "OpenGOAL - Open Decompiler Logs"
},
{
"command": "opengoal.decomp.openMostRecentIRFile",
"title": "OpenGOAL - Open Recent IR2 File"
},
{
"command": "opengoal.decomp.openManPage",
"title": "OpenGOAL - MIPS Man Page"
},
{
"command": "opengoal.decomp.decompileSpecificFile",
"title": "OpenGOAL - Decompile Specific File"
},
{
"command": "opengoal.decomp.decompileCurrentFile",
"title": "OpenGOAL - Decompile Current File"
},
{
"command": "opengoal.decomp.toggleAutoDecompilation",
"title": "OpenGOAL - Toggle Auto-Decompilation"
},
{
"command": "opengoal.decomp.toggleAutoDecompDGO",
"title": "OpenGOAL - Toggle DGO overrides for Auto-Decompilation"
},
{
"command": "opengoal.decomp.updateSourceFile",
"title": "OpenGOAL - Copy Decompilation to Source File"
},
{
"command": "opengoal.decomp.updateReferenceTest",
"title": "OpenGOAL - Copy Decompilation to Reference Tests"
},
{
"command": "opengoal.decomp.casts.repeatLast",
"title": "OpenGOAL - Casts - Repeat Last"
},
{
"command": "opengoal.decomp.casts.castSelection",
"title": "OpenGOAL - Casts - Add Cast to Selection"
},
{
"command": "opengoal.decomp.casts.labelCastSelection",
"title": "OpenGOAL - Casts - Add Label Cast to Selection"
},
{
"command": "opengoal.decomp.casts.stackCastSelection",
"title": "OpenGOAL - Casts - Add Stack Cast to Selection"
},
{
"command": "opengoal.decomp.casts.typeCastSelection",
"title": "OpenGOAL - Casts - Add Type Cast to Selection"
},
{
"command": "opengoal.decomp.misc.addToOffsets",
"title": "OpenGOAL - Misc - Add to deftype Offsets"
},
{
"command": "opengoal.decomp.misc.preserveBlock",
"title": "OpenGOAL - Misc - Preserve Block"
},
{
"command": "opengoal.decomp.misc.convertHexToDec",
"title": "OpenGOAL - Misc - Convert Hex to Dec"
},
{
"command": "opengoal.decomp.misc.convertDecToHex",
"title": "OpenGOAL - Misc - Convert Dec to Hex"
},
{
"command": "opengoal.decomp.misc.generateTypeFlags",
"title": "OpenGOAL - Misc - Generate Type Flags"
},
{
"command": "opengoal.decomp.misc.genTypeFields",
"title": "OpenGOAL - Misc - Generate Type Fields"
},
{
"command": "opengoal.decomp.misc.genMethodStubs",
"title": "OpenGOAL - Misc - Generate Method Stubs"
},
{
"command": "opengoal.decomp.misc.applyDecompilerSuggestions",
"title": "OpenGOAL - Misc - Apply Decompiler Suggestions to Selection"
},
{
"command": "opengoal.decomp.misc.batchRenameUnnamedVars",
"title": "OpenGOAL - Misc - Batch Rename Unnamed Vars"
},
{
"command": "opengoal.decomp.misc.compareFuncWithJak2",
"title": "OpenGOAL - Misc - Compare Func with Jak 2"
},
{
"command": "opengoal.decomp.typeSearcher.open",
"title": "OpenGOAL - Misc - Type Searcher"
},
{
"command": "opengoal.lsp.start",
"title": "OpenGOAL - LSP - Start"
},
{
"command": "opengoal.lsp.stop",
"title": "OpenGOAL - LSP - Stop"
},
{
"command": "opengoal.lsp.restart",
"title": "OpenGOAL - LSP - Restart"
},
{
"command": "opengoal.lsp.openLogs",
"title": "OpenGOAL - LSP - Open Logs"
},
{
"command": "opengoal.nrepl.jackin",
"title": "OpenGOAL - nREPL - Jack-In"
},
{
"command": "opengoal.nrepl.unjack",
"title": "OpenGOAL - nREPL - Un-jack"
},
{
"command": "opengoal.nrepl.evalCurrentForm",
"title": "OpenGOAL - nREPL - Eval Current Form"
}
],
"configuration": [
{
"id": "opengoal-goal",
"title": "GOAL Tooling",
"properties": {
"opengoal.parinferMode": {
"type": "string",
"default": "DISABLED",
"enum": [
"DISABLED",
"SMART",
"PAREN",
"INDENT"
],
"enumDescriptions": [
"Disable parinfer",
"Parinfer will try it's best to deduce when to run Paren mode and when to run Indent mode",
"Parinfer will handle the indentation, you handle the parens",
"Parinfer will handle the parens, you handle the indentation"
]
}
}
},
{
"id": "opengoal-repl",
"title": "REPL",
"properties": {
"opengoal.replPort": {
"type": "number",
"default": 8181,
"description": "Port for the nREPL server"
},
"opengoal.replAutoJackIn": {
"type": "boolean",
"default": false,
"description": "Whether to automatically attempt to jack into a REPL when performing an action that requires it"
},
"opengoal.reloadFileOnSave": {
"type": "boolean",
"default": false,
"description": "Whether to automatically (ml \"file-name\") when saving a `.gc` file"
}
}
},
{
"id": "opengoal-decomp",
"title": "Decompilation",
"properties": {
"opengoal.autoDecompilation": {
"type": "boolean",
"default": true,
"description": "Automatically decompile active IR2 files"
},
"opengoal.autoDecompDGO": {
"type": "boolean",
"default": true,
"description": "Try to automatically determine the DGO files needed for the auto decomp input"
},
"opengoal.eeManPagePath": {
"type": [
"string",
"null"
],
"default": null,
"description": "File path to the EE Man Page"
},
"opengoal.vuManPagePath": {
"type": [
"string",
"null"
],
"default": null,
"description": "File path to the VU Man Page"
},
"opengoal.decompilerPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "File path to the decompiler executable"
},
"opengoal.formatterPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "File path to the formatter executable for when invoking directly (not via LSP)"
},
"opengoal.typeSearcherPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "File path to the type searcher executable"
},
"opengoal.decompilerJak1ConfigVersion": {
"type": "string",
"default": "ntsc_v1",
"description": "Config version to use for decompiling Jak 1 related files"
},
"opengoal.decompilerJak2ConfigVersion": {
"type": "string",
"default": "ntsc_v1",
"description": "Config version to use for decompiling Jak 2 related files"
},
"opengoal.decompilerJak3ConfigVersion": {
"type": "string",
"default": "ntsc_v1",
"description": "Config version to use for decompiling Jak 3 related files"
},
"opengoal.formatDecompilationOutput": {
"type": "boolean",
"default": false,
"description": "Whether or not the results of the decompiler should be auto-formatted"
}
}
},
{
"id": "opengoal-lsp",
"title": "LSP",
"properties": {
"opengoal.launchLspOnStartup": {
"type": "boolean",
"default": true,
"description": "Whether or not the LSP should be started automatically"
},
"opengoal.opengoalLspPath": {
"type": "string",
"default": "",
"description": "Hardcode a path to the LSP executable"
},
"opengoal.opengoalLspLogPath": {
"type": "string",
"default": "",
"description": "Provide a path that the LSP should log it's debugging info to"
},
"opengoal.opengoalLspLogVerbose": {
"type": "boolean",
"default": "",
"description": "Should the LSP logging be verbose?"
}
}
},
{
"id": "opengoal-colors",
"title": "Colors",
"properties": {
"opengoal.colors.goal.entity.global": {
"description": "Colors - Global Entity",
"type": "string",
"default": "#36f9f6"
},
"opengoal.colors.goal.storage.control": {
"description": "Colors - Storage Control",
"type": "string",
"default": "#36f9f6"
},
"opengoal.colors.goal.symbol": {
"description": "Colors - Symbols",
"type": "string",
"default": "#ff7edbff"
},
"opengoal.colors.ir.typeanalysis": {
"description": "Colors - Type Analysis",
"type": "string",
"default": "#fe4450E6"
},
"opengoal.colors.ir.error": {
"description": "Colors - Error",
"type": "string",
"default": "#E93F4C"
},
"opengoal.colors.ir.warn": {
"description": "Colors - Warning",
"type": "string",
"default": "#68B574"
},
"opengoal.colors.ir.info": {
"description": "Colors - Info",
"type": "string",
"default": "#3773AE"
},
"opengoal.colors.ir.opnumber": {
"description": "Colors - OP Number",
"type": "string",
"default": "#EC407A"
},
"opengoal.colors.ir.reg.a0": {
"description": "Colors - Register A0",
"type": "string",
"default": "#EF9A9A"
},
"opengoal.colors.ir.reg.a1": {
"description": "Colors - Register A1",
"type": "string",
"default": "#F48FB1"
},
"opengoal.colors.ir.reg.a2": {
"description": "Colors - Register A2",
"type": "string",
"default": "#CE93D8"
},
"opengoal.colors.ir.reg.a3": {
"description": "Colors - Register A3",
"type": "string",
"default": "#90CAF9"
},
"opengoal.colors.ir.reg.t0": {
"description": "Colors - Register T0",
"type": "string",
"default": "#80DEEA"
},
"opengoal.colors.ir.reg.t1": {
"description": "Colors - Register T1",
"type": "string",
"default": "#80CBC4"
},
"opengoal.colors.ir.reg.t2": {
"description": "Colors - Register T2",
"type": "string",
"default": "#A5D6A7"
},
"opengoal.colors.ir.reg.t3": {
"description": "Colors - Register T3",
"type": "string",
"default": "#E6EE9C"
},
"opengoal.colors.ir.reg.float": {
"description": "Colors - Register Float",
"type": "string",
"default": "#BCAAA4"
},
"opengoal.colors.ir.reg.return": {
"description": "Colors - Register V0 (return)",
"type": "string",
"default": "#FF9100"
},
"opengoal.colors.ir.reg.stack": {
"description": "Colors - Register SP (stack)",
"type": "string",
"default": "#76FF03"
},
"opengoal.colors.ir.reg.process": {
"description": "Colors - Register S6 (process)",
"type": "string",
"default": "#aaff63"
},
"opengoal.colors.ir.reg.general": {
"description": "Colors - Register General",
"type": "string",
"default": "#B0BEC5"
}
}
}
],
"configurationDefaults": {
"[opengoal-ir]": {
"editor.bracketPairColorization.enabled": false,
"editor.inlayHints.enabled": "offUnlessPressed"
}
},
"customEditors": [
{
"viewType": "pdf.opengoal.manpage",
"displayName": "OpenGOAL Manpage Preview",
"selector": [
{
"filenamePattern": "*.pdf"
}
]
}
],
"menus": {
"editor/context": [
{
"when": "resourceLangId == opengoal-ir",
"command": "opengoal.decomp.openManPage",
"group": "z_commands"
}
]
},
"languages": [
{
"id": "opengoal",
"aliases": [
"OpenGOAL",
"opengoal"
],
"extensions": [
".gc",
".gd"
],
"icon": {
"light": "./icons/opengoal.png",
"dark": "./icons/opengoal.png"
},
"configuration": "./syntaxes/configs/opengoal.jsonc"
},
{
"id": "opengoal-goos",
"aliases": [
"OpenGOAL-GOOS",
"opengoal-goos"
],
"extensions": [
".gs",
".gp"
],
"icon": {
"light": "./icons/opengoal-goos.png",
"dark": "./icons/opengoal-goos.png"
},
"configuration": "./syntaxes/configs/opengoal-goos.jsonc"
},
{
"id": "opengoal-ir",
"aliases": [
"OpenGOAL-IR",
"opengoal-ir"
],
"filenamePatterns": [
"*_ir2.asm"
],
"icon": {
"light": "./icons/opengoal-ir.png",
"dark": "./icons/opengoal-ir.png"
},
"configuration": "./syntaxes/configs/opengoal-ir.jsonc"
}
],
"grammars": [
{
"language": "opengoal",
"scopeName": "source.opengoal",
"path": "./syntaxes/opengoal.tmLanguage.json"
},
{
"language": "opengoal-goos",
"scopeName": "source.opengoal-goos",
"path": "./syntaxes/opengoal-goos.tmLanguage.json"
},
{
"language": "opengoal-ir",
"scopeName": "source.opengoal-ir",
"path": "./syntaxes/opengoal-ir.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.opengoal": "opengoal",
"meta.embedded.block.mips2c": "cpp"
}
}
],
"snippets": [
{
"language": "opengoal",
"path": "./snippets/opengoal.json"
}
]
},
"resolutions": {
"[email protected]": "patch:vscode-jsonrpc@npm%3A8.1.0#./.yarn/patches/vscode-jsonrpc-npm-8.1.0-557f20ee72.patch"
},
"packageManager": "[email protected]"
}