mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
53277a65ad
- Integrate the AST into the LSP, this makes parsing and tokenizing the files much easier - Consolidate most of the symbol info tracking in `goalc` to a single map. Fixed some issues where the old map would never evict symbols when re-compiling files. There is still some more to cleanup, but this now can be used as an incrementally updated source-of-truth for the LSP - re-compile files when they are saved. Ideally this would be done everytime they are changed but that: - may be too aggressive - goalc doesn't compile incrementally yet so it likely would be a worse UX Features added, see https://github.com/open-goal/opengoal-vscode/issues/256 - Hover ![image](https://github.com/open-goal/jak-project/assets/13153231/58dadb5d-582c-4c1f-9ffe-eaa4c85a0255) ![image](https://github.com/open-goal/jak-project/assets/13153231/b383adde-57fc-462c-a256-b2de5c30ca9a) - LSP Status fixed - Type Hierarchy ![image](https://github.com/open-goal/jak-project/assets/13153231/8e681377-1d4e-4336-ad70-1695a4607340) - Document Color ![image](https://github.com/open-goal/jak-project/assets/13153231/4e48ccd8-0ed1-4459-a133-5277561e4201) - Document Symbols ![Screenshot 2024-03-27 004105](https://github.com/open-goal/jak-project/assets/13153231/8e655034-43c4-4261-b6e0-85de00cbfc7f) - Completions ![Screenshot 2024-03-30 004504](https://github.com/open-goal/jak-project/assets/13153231/d123a187-af90-466b-9eb7-561b2ee97cd1) --------- Co-authored-by: Hat Kid <6624576+Hat-Kid@users.noreply.github.com>
300 lines
9.3 KiB
JSON
300 lines
9.3 KiB
JSON
{
|
|
"version": "0.2.1",
|
|
"defaults": {},
|
|
"configurations": [
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
|
|
"name": "Tests - Unit-Tests - Summary",
|
|
"args": ["--gtest_brief=1"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
|
|
"name": "Tests - Unit-Tests - Verbose",
|
|
"args": ["--gtest_brief=0"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
|
|
"name": "Tests - Draft Tests - Verbose",
|
|
"args": ["--gtest_brief=0", "--gtest_filter=\"*Draft*\""]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
|
|
"name": "Tests - TypeConsistency - Verbose",
|
|
"args": ["--gtest_brief=0", "--gtest_filter=\"*TypeConsistency*\""]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
|
|
"name": "Tests - TypeConsistency - Jak 2 - Verbose",
|
|
"args": ["--gtest_brief=0", "--gtest_filter=\"*Jak2TypeConsistency*\""]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
|
|
"name": "Tests - WithGameTests - Verbose",
|
|
"args": ["--gtest_brief=0", "--gtest_filter=\"*WithGameTests*\""]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "offline-test.exe (bin\\offline-test.exe)",
|
|
"name": "Tests - Offline Tests - Jak 1",
|
|
"args": [
|
|
"--iso_data_path",
|
|
"${workspaceRoot}/iso_data/jak1",
|
|
"--game",
|
|
"jak1"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "offline-test.exe (bin\\offline-test.exe)",
|
|
"name": "Tests - Offline Tests - Jak 2",
|
|
"args": [
|
|
"--iso_data_path",
|
|
"${workspaceRoot}/iso_data/jak2",
|
|
"--game",
|
|
"jak2"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "offline-test.exe (bin\\offline-test.exe)",
|
|
"name": "Tests - Offline Tests - Jak 3",
|
|
"args": [
|
|
"--iso_data_path",
|
|
"${workspaceRoot}/iso_data/jak3",
|
|
"--game",
|
|
"jak3"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "offline-test.exe (bin\\offline-test.exe)",
|
|
"name": "Tests - Offline Tests - Jak 1 - Specific File",
|
|
"args": [
|
|
"--iso_data_path",
|
|
"${workspaceRoot}/iso_data/jak1",
|
|
"--game",
|
|
"jak1",
|
|
"--file",
|
|
"euler-h"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "offline-test.exe (bin\\offline-test.exe)",
|
|
"name": "Tests - Offline Tests - Jak 2 - Specific File",
|
|
"args": [
|
|
"--iso_data_path",
|
|
"${workspaceRoot}/iso_data/jak2",
|
|
"--game",
|
|
"jak2",
|
|
"--file",
|
|
"oracle-texture"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "gk.exe (bin\\gk.exe)",
|
|
"name": "Game - Jak 1 - Runtime",
|
|
"args": ["-v", "--game", "jak1", "--", "-fakeiso", "-debug"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "gk.exe (bin\\gk.exe)",
|
|
"name": "Game - Jak 1 - Runtime (boot)",
|
|
"args": ["-v", "--game", "jak1", "--", "-boot", "-fakeiso", "-debug"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "gk.exe (bin\\gk.exe)",
|
|
"name": "Game - Jak 2 - Runtime (no boot)",
|
|
"args": ["-v", "--game", "jak2", "--", "-fakeiso", "-debug"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "gk.exe (bin\\gk.exe)",
|
|
"name": "Game - Jak 2 - Runtime (boot)",
|
|
"args": ["-v", "--game", "jak2", "--", "-boot", "-fakeiso", "-debug"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "gk.exe (bin\\gk.exe)",
|
|
"name": "Game - Jak 2 - Runtime (release)",
|
|
"args": ["-v", "--game", "jak2", "--", "-boot", "-fakeiso"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc.exe (bin\\goalc.exe)",
|
|
"name": "REPL - Jak 1",
|
|
"args": ["--user-auto", "--game", "jak1"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc.exe (bin\\goalc.exe)",
|
|
"name": "REPL - Jak 2",
|
|
"args": ["--user-auto", "--game", "jak2"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "decompiler.exe (bin\\decompiler.exe)",
|
|
"name": "Decompiler - Jak 1",
|
|
"args": [
|
|
"${workspaceRoot}/decompiler/config/jak1/jak1_config.jsonc",
|
|
"${workspaceRoot}/iso_data",
|
|
"${workspaceRoot}/decompiler_out",
|
|
"--version",
|
|
"ntsc_v1"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "decompiler.exe (bin\\decompiler.exe)",
|
|
"name": "Decompiler - Jak 1 NTSC-U v2",
|
|
"args": [
|
|
"${workspaceRoot}/decompiler/config/jak1/jak1_config.jsonc",
|
|
"${workspaceRoot}/iso_data",
|
|
"${workspaceRoot}/decompiler_out",
|
|
"--version",
|
|
"ntsc_v2"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "decompiler.exe (bin\\decompiler.exe)",
|
|
"name": "Decompiler - Jak 1 PAL",
|
|
"args": [
|
|
"${workspaceRoot}/decompiler/config/jak1/jak1_config.jsonc",
|
|
"${workspaceRoot}/iso_data",
|
|
"${workspaceRoot}/decompiler_out",
|
|
"--version",
|
|
"pal"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "decompiler.exe (bin\\decompiler.exe)",
|
|
"name": "Decompiler - Jak 2",
|
|
"args": [
|
|
"${workspaceRoot}/decompiler/config/jak2/jak2_config.jsonc",
|
|
"${workspaceRoot}/iso_data",
|
|
"${workspaceRoot}/decompiler_out",
|
|
"--version",
|
|
"ntsc_v1"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "decompiler.exe (bin\\decompiler.exe)",
|
|
"name": "Decompiler - Jak 2 - Extract",
|
|
"args": [
|
|
"${workspaceRoot}/decompiler/config/jak2/jak2_config.jsonc",
|
|
"${workspaceRoot}/iso_data",
|
|
"${workspaceRoot}/decompiler_out",
|
|
"--version",
|
|
"ntsc_v1",
|
|
"--config-override \"{\\\"decompile_code\\\": false, \\\"levels_extract\\\": true, \\\"allowed_objects\\\": []}\""
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "decompiler.exe (bin\\decompiler.exe)",
|
|
"name": "Decompiler - Jak 3",
|
|
"args": [
|
|
"${workspaceRoot}/decompiler/config/jak3/jak3_config.jsonc",
|
|
"${workspaceRoot}/iso_data",
|
|
"${workspaceRoot}/decompiler_out",
|
|
"--version",
|
|
"ntsc_v1"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "memory_dump_tool.exe (bin\\memory_dump_tool.exe)",
|
|
"name": "Tools - EE Memory Analyze - Jak 1",
|
|
"args": ["\"${workspaceRoot}/eeMemory.bin\"", "--output-path", "\"${workspaceRoot}\"", "--game", "jak1"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "memory_dump_tool.exe (bin\\memory_dump_tool.exe)",
|
|
"name": "Tools - EE Memory Analyze - Jak 2",
|
|
"args": ["\"${workspaceRoot}/eeMemory.bin\"", "--output-path", "\"${workspaceRoot}\"", "--game", "jak2"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "dgo_unpacker.exe (bin\\dgo_unpacker.exe)",
|
|
"name": "Tools - DGO Unpacker (test)",
|
|
"args": [
|
|
"C:\\GameData\\Jak1\\Backup\\DGO-PAL\\GAME",
|
|
"C:\\GameData\\Jak1\\Backup\\DISC-PAL\\CGO\\GAME.CGO"
|
|
]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "extractor.exe (bin\\extractor.exe)",
|
|
"name": "Tools - Extractor - Full",
|
|
"args": ["\"E:\\ISOs\\Jak\\Jak 1.iso\""]
|
|
},
|
|
{
|
|
"type" : "default",
|
|
"project" : "CMakeLists.txt",
|
|
"projectTarget" : "lsp.exe (bin\\lsp.exe)",
|
|
"name" : "Tools - LSP",
|
|
"args" : []
|
|
},
|
|
{
|
|
"type" : "default",
|
|
"project" : "CMakeLists.txt",
|
|
"projectTarget" : "type_searcher.exe (bin\\type_searcher.exe)",
|
|
"name" : "Tools - Type Searcher",
|
|
"args" : ["--game", "jak2", "--output-path", "./search-results.json", "--size", 255, "--fields", "[{\\\"type\\\":\\\"quaternion\\\",\\\"offset\\\":48}]"]
|
|
},
|
|
{
|
|
"type" : "default",
|
|
"project" : "CMakeLists.txt",
|
|
"projectTarget" : "formatter.exe (bin\\formatter.exe)",
|
|
"name" : "Tools - Formatter - Inplace",
|
|
"args" : ["--write", "--file", "C:\\Users\\xtvas\\Repos\\opengoal\\jak-project\\decompiler_out\\jak3\\mood-h_disasm.gc"]
|
|
},
|
|
{
|
|
"type": "default",
|
|
"project": "CMakeLists.txt",
|
|
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
|
|
"name": "Tests - Formatter",
|
|
"args": ["--gtest_brief=0", "--gtest_filter=\"*FormatterTests*\""]
|
|
}
|
|
]
|
|
}
|