mirror of
https://github.com/open-goal/jak-project
synced 2026-07-09 14:55:51 -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   - LSP Status fixed - Type Hierarchy  - Document Color  - Document Symbols  - Completions  --------- Co-authored-by: Hat Kid <6624576+Hat-Kid@users.noreply.github.com>
32 lines
964 B
CMake
32 lines
964 B
CMake
add_executable(lsp
|
|
handlers/lsp_router.cpp
|
|
handlers/initialize.cpp
|
|
handlers/text_document/completion.cpp
|
|
handlers/text_document/document_color.cpp
|
|
handlers/text_document/document_symbol.cpp
|
|
handlers/text_document/document_synchronization.cpp
|
|
handlers/text_document/formatting.cpp
|
|
handlers/text_document/go_to.cpp
|
|
handlers/text_document/hover.cpp
|
|
handlers/text_document/type_hierarchy.cpp
|
|
main.cpp
|
|
protocol/common_types.cpp
|
|
protocol/completion.cpp
|
|
protocol/document_color.cpp
|
|
protocol/document_diagnostics.cpp
|
|
protocol/document_symbols.cpp
|
|
protocol/document_synchronization.cpp
|
|
protocol/formatting.cpp
|
|
protocol/hover.cpp
|
|
protocol/progress_report.cpp
|
|
protocol/type_hierarchy.cpp
|
|
state/data/mips_instruction.cpp
|
|
state/lsp_requester.cpp
|
|
state/workspace.cpp
|
|
transport/stdio.cpp
|
|
lsp_util.cpp)
|
|
|
|
target_compile_definitions(lsp PRIVATE -DJSON_DIAGNOSTICS=1)
|
|
|
|
target_link_libraries(lsp common decomp compiler tree-sitter)
|