2022-03-15 01:36:32 -04:00
|
|
|
{
|
|
|
|
"name": "opengoal",
|
|
|
|
"displayName": "OpenGOAL",
|
|
|
|
"description": "OpenGOAL Support for VSCode",
|
2022-03-16 23:31:45 -04:00
|
|
|
"publisher": "opengoal",
|
2023-04-13 22:42:50 -04:00
|
|
|
"version": "0.14.0",
|
2022-03-15 01:36:32 -04:00
|
|
|
"engines": {
|
2023-03-08 22:33:18 -05:00
|
|
|
"vscode": "^1.76.0"
|
2022-03-15 01:36:32 -04:00
|
|
|
},
|
|
|
|
"categories": [
|
|
|
|
"Programming Languages"
|
|
|
|
],
|
2022-03-16 23:31:45 -04:00
|
|
|
"icon": "img/logo.png",
|
|
|
|
"license": "ISC",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/open-goal/opengoal-vscode"
|
|
|
|
},
|
2022-04-15 15:41:27 -04:00
|
|
|
"main": "./out/extension.js",
|
|
|
|
"scripts": {
|
|
|
|
"vscode:prepublish": "npm run compile",
|
|
|
|
"compile": "tsc -p ./",
|
|
|
|
"lint": "eslint . --ext .ts,.tsx",
|
2022-07-24 22:53:37 -04:00
|
|
|
"watch": "tsc -watch -p ./",
|
|
|
|
"format": "npx prettier --write .",
|
2022-10-25 21:11:55 -04:00
|
|
|
"format:check": "npx prettier --check .",
|
|
|
|
"postinstall": "patch-package"
|
2022-07-24 22:53:37 -04:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@types/follow-redirects": "^1.14.1",
|
2023-04-13 22:38:41 -04:00
|
|
|
"@types/glob": "^8.1.0",
|
2022-09-19 01:39:55 -04:00
|
|
|
"@types/node": "^17.0.45",
|
2023-03-08 22:33:18 -05:00
|
|
|
"@types/vscode": "^1.76.0",
|
2023-05-21 17:30:53 -04:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
2023-04-13 22:39:49 -04:00
|
|
|
"@typescript-eslint/parser": "^5.58.0",
|
2023-04-13 22:38:19 -04:00
|
|
|
"eslint": "^8.38.0",
|
2023-01-19 01:52:12 -05:00
|
|
|
"patch-package": "^6.5.1",
|
2023-02-27 16:11:58 -05:00
|
|
|
"typescript": "^4.9.5",
|
2022-12-15 00:28:53 -05:00
|
|
|
"vsce": "^2.15.0"
|
2022-07-24 22:53:37 -04:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-09-15 23:42:26 -04:00
|
|
|
"comment-json": "^4.2.3",
|
2022-09-15 21:59:06 -04:00
|
|
|
"follow-redirects": "^1.15.2",
|
2023-04-13 22:38:13 -04:00
|
|
|
"glob": "^10.0.0",
|
2022-12-17 14:54:05 -05:00
|
|
|
"parinfer": "^3.13.1",
|
2023-03-09 00:06:15 -05:00
|
|
|
"vscode-languageclient": "^8.1.0"
|
2022-04-15 15:41:27 -04:00
|
|
|
},
|
2023-03-08 22:33:18 -05:00
|
|
|
"activationEvents": [],
|
2022-03-15 01:36:32 -04:00
|
|
|
"contributes": {
|
2022-04-15 15:41:27 -04:00
|
|
|
"commands": [
|
|
|
|
{
|
|
|
|
"command": "opengoal.switchFile",
|
|
|
|
"title": "OpenGOAL - Switch File"
|
2022-04-15 19:42:15 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.openMostRecentIRFile",
|
2022-07-31 16:31:21 -04:00
|
|
|
"title": "OpenGOAL - Open Recent IR2 File"
|
2022-07-29 00:01:53 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.openManPage",
|
2022-07-31 16:31:21 -04:00
|
|
|
"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.updateSourceFile",
|
|
|
|
"title": "OpenGOAL - Copy Decompilation to Source File"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.updateReferenceTest",
|
|
|
|
"title": "OpenGOAL - Copy Decompilation to Reference Tests"
|
2022-07-31 20:54:46 -04:00
|
|
|
},
|
2022-08-01 22:38:17 -04:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
},
|
2022-09-13 01:17:55 -04:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.misc.addToOffsets",
|
|
|
|
"title": "OpenGOAL - Misc - Add to deftype Offsets"
|
|
|
|
},
|
2022-09-13 01:21:45 -04:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.misc.preserveBlock",
|
|
|
|
"title": "OpenGOAL - Misc - Preserve Block"
|
|
|
|
},
|
2022-10-13 22:25:34 -04:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.misc.convertHexToDec",
|
|
|
|
"title": "OpenGOAL - Misc - Convert Hex to Dec"
|
|
|
|
},
|
2022-10-15 15:47:19 -04:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.misc.convertDecToHex",
|
|
|
|
"title": "OpenGOAL - Misc - Convert Dec to Hex"
|
|
|
|
},
|
2022-12-10 16:34:13 -05:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.misc.generateTypeFlags",
|
|
|
|
"title": "OpenGOAL - Misc - Generate Type Flags"
|
|
|
|
},
|
2022-12-10 16:38:58 -05:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.misc.genTypeFields",
|
|
|
|
"title": "OpenGOAL - Misc - Generate Type Fields"
|
|
|
|
},
|
2022-12-10 16:32:07 -05:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.misc.genMethodStubs",
|
|
|
|
"title": "OpenGOAL - Misc - Generate Method Stubs"
|
|
|
|
},
|
2022-09-30 20:28:01 -04:00
|
|
|
{
|
|
|
|
"command": "opengoal.decomp.typeSearcher.open",
|
|
|
|
"title": "OpenGOAL - Misc - Type Searcher"
|
|
|
|
},
|
2022-07-31 20:54:46 -04:00
|
|
|
{
|
|
|
|
"command": "opengoal.lsp.start",
|
|
|
|
"title": "OpenGOAL - LSP - Start"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "opengoal.lsp.stop",
|
|
|
|
"title": "OpenGOAL - LSP - Stop"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "opengoal.lsp.restart",
|
|
|
|
"title": "OpenGOAL - LSP - Restart"
|
2022-04-15 15:41:27 -04:00
|
|
|
}
|
|
|
|
],
|
2022-08-01 23:58:47 -04:00
|
|
|
"configuration": [
|
2022-12-17 14:54:05 -05:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-08-01 23:58:47 -04:00
|
|
|
{
|
|
|
|
"id": "opengoal-decomp",
|
|
|
|
"title": "Decompilation",
|
|
|
|
"properties": {
|
|
|
|
"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"
|
2023-01-04 20:28:02 -05:00
|
|
|
},
|
|
|
|
"opengoal.typeSearcherPath": {
|
|
|
|
"type": [
|
|
|
|
"string",
|
|
|
|
"null"
|
|
|
|
],
|
|
|
|
"default": null,
|
|
|
|
"description": "File path to the type searcher executable"
|
2022-08-01 23:58:47 -04:00
|
|
|
},
|
2023-03-08 22:33:18 -05:00
|
|
|
"opengoal.decompilerJak1ConfigVersion": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "ntsc_v1",
|
|
|
|
"description": "Config version to use for decompiling jak 1 related files"
|
2022-08-01 23:58:47 -04:00
|
|
|
},
|
2023-03-08 22:33:18 -05:00
|
|
|
"opengoal.decompilerJak2ConfigVersion": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "ntsc_v1",
|
|
|
|
"description": "Config version to use for decompiling jak 2 related files"
|
2022-08-01 23:58:47 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "opengoal-lsp",
|
|
|
|
"title": "LSP",
|
|
|
|
"properties": {
|
|
|
|
"opengoal.launchLspOnStartup": {
|
2022-10-10 00:45:31 -04:00
|
|
|
"type": "boolean",
|
2022-08-01 23:58:47 -04:00
|
|
|
"default": true,
|
|
|
|
"description": "Whether or not the LSP should be started automatically"
|
2022-09-03 17:04:26 -04:00
|
|
|
},
|
|
|
|
"opengoal.opengoalLspPath": {
|
2022-10-10 00:45:31 -04:00
|
|
|
"type": "string",
|
2022-09-04 12:11:00 -04:00
|
|
|
"default": "",
|
2022-09-03 17:04:26 -04:00
|
|
|
"description": "Hardcode a path to the LSP executable"
|
2022-10-10 00:45:31 -04:00
|
|
|
},
|
|
|
|
"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?"
|
2022-08-01 23:58:47 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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",
|
2022-09-03 17:04:26 -04:00
|
|
|
"default": "#E93F4C"
|
2022-08-01 23:58:47 -04:00
|
|
|
},
|
|
|
|
"opengoal.colors.ir.warn": {
|
|
|
|
"description": "Colors - Warning",
|
|
|
|
"type": "string",
|
2022-09-03 17:04:26 -04:00
|
|
|
"default": "#68B574"
|
|
|
|
},
|
|
|
|
"opengoal.colors.ir.info": {
|
|
|
|
"description": "Colors - Info",
|
|
|
|
"type": "string",
|
|
|
|
"default": "#3773AE"
|
2022-08-01 23:58:47 -04:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
},
|
2022-08-28 21:58:53 -04:00
|
|
|
"opengoal.colors.ir.reg.process": {
|
|
|
|
"description": "Colors - Register S6 (process)",
|
|
|
|
"type": "string",
|
|
|
|
"default": "#aaff63"
|
|
|
|
},
|
2022-08-01 23:58:47 -04:00
|
|
|
"opengoal.colors.ir.reg.general": {
|
|
|
|
"description": "Colors - Register General",
|
|
|
|
"type": "string",
|
|
|
|
"default": "#B0BEC5"
|
|
|
|
}
|
2022-07-29 00:01:53 -04:00
|
|
|
}
|
|
|
|
}
|
2022-08-01 23:58:47 -04:00
|
|
|
],
|
2022-03-16 20:43:17 -04:00
|
|
|
"configurationDefaults": {
|
|
|
|
"[opengoal-ir]": {
|
2022-08-03 23:08:11 -04:00
|
|
|
"editor.bracketPairColorization.enabled": false,
|
|
|
|
"editor.inlayHints.enabled": "offUnlessPressed"
|
2022-03-16 20:43:17 -04:00
|
|
|
}
|
|
|
|
},
|
2022-07-29 00:01:53 -04:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-03-15 01:36:32 -04:00
|
|
|
"languages": [
|
|
|
|
{
|
|
|
|
"id": "opengoal",
|
|
|
|
"aliases": [
|
|
|
|
"OpenGOAL",
|
|
|
|
"opengoal"
|
|
|
|
],
|
|
|
|
"extensions": [
|
|
|
|
".gc",
|
|
|
|
".gd"
|
|
|
|
],
|
2022-03-16 20:43:17 -04:00
|
|
|
"icon": {
|
|
|
|
"light": "./icons/opengoal.png",
|
|
|
|
"dark": "./icons/opengoal.png"
|
|
|
|
},
|
|
|
|
"configuration": "./syntaxes/configs/opengoal.jsonc"
|
2022-03-15 01:36:32 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "opengoal-goos",
|
|
|
|
"aliases": [
|
|
|
|
"OpenGOAL-GOOS",
|
|
|
|
"opengoal-goos"
|
|
|
|
],
|
|
|
|
"extensions": [
|
2022-04-14 22:57:52 -04:00
|
|
|
".gs",
|
|
|
|
".gp"
|
2022-03-15 01:36:32 -04:00
|
|
|
],
|
2022-03-16 20:43:17 -04:00
|
|
|
"icon": {
|
|
|
|
"light": "./icons/opengoal-goos.png",
|
|
|
|
"dark": "./icons/opengoal-goos.png"
|
|
|
|
},
|
2022-07-31 20:55:15 -04:00
|
|
|
"configuration": "./syntaxes/configs/opengoal-goos.jsonc"
|
2022-03-16 20:43:17 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "opengoal-ir",
|
|
|
|
"aliases": [
|
|
|
|
"OpenGOAL-IR",
|
|
|
|
"opengoal-ir"
|
|
|
|
],
|
|
|
|
"filenamePatterns": [
|
2022-03-16 23:31:45 -04:00
|
|
|
"*_ir2.asm"
|
2022-03-16 20:43:17 -04:00
|
|
|
],
|
|
|
|
"icon": {
|
|
|
|
"light": "./icons/opengoal-ir.png",
|
|
|
|
"dark": "./icons/opengoal-ir.png"
|
|
|
|
},
|
2022-07-31 20:55:15 -04:00
|
|
|
"configuration": "./syntaxes/configs/opengoal-ir.jsonc"
|
2022-03-15 01:36:32 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"grammars": [
|
|
|
|
{
|
|
|
|
"language": "opengoal",
|
|
|
|
"scopeName": "source.opengoal",
|
|
|
|
"path": "./syntaxes/opengoal.tmLanguage.json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"language": "opengoal-goos",
|
|
|
|
"scopeName": "source.opengoal-goos",
|
|
|
|
"path": "./syntaxes/opengoal-goos.tmLanguage.json"
|
2022-03-16 20:43:17 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"language": "opengoal-ir",
|
|
|
|
"scopeName": "source.opengoal-ir",
|
|
|
|
"path": "./syntaxes/opengoal-ir.tmLanguage.json",
|
|
|
|
"embeddedLanguages": {
|
2022-12-09 19:36:03 -05:00
|
|
|
"meta.embedded.block.opengoal": "opengoal",
|
|
|
|
"meta.embedded.block.mips2c": "cpp"
|
2022-03-16 20:43:17 -04:00
|
|
|
}
|
2022-03-15 01:36:32 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"snippets": [
|
|
|
|
{
|
2022-03-15 01:48:03 -04:00
|
|
|
"language": "opengoal",
|
|
|
|
"path": "./snippets/opengoal.json"
|
2022-03-15 01:36:32 -04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|