Serve document symbols and highlights over LSP

SymbolIndex::find_by_path exposes one document's records with the same
overlay shadowing and coverage as find. EditorDiagnostics maps them to
textDocument/documentSymbol, and a bounded same-file highlight core
(vls/features/DocumentSymbols.hpp) backs textDocument/documentHighlight
from verified occurrence facts with the ambiguous-binding rule. Both are
advertised and exercised over a real stdio session with the stock
observer. Record the LSP parity matrix.
This commit is contained in:
faumaray committed 2026-12-05 14:21:26 +03:00
1 parent da8003f6d4
commit 8ca3dcbf74
16 files changed
+366 -8

No files matched your search

+5 -3
View File
@@ -69,6 +69,7 @@ void build(Void::Build::Project &project) {
"src/features/Completion.cpp",
"src/features/IndexNavigation.cpp",
"src/features/SignatureHelp.cpp",
"src/features/DocumentSymbols.cpp",
"src/debug/live/LiveSession.cpp",
"src/modules/ModuleWorkQueue.cpp",
"src/modules/GccScan.cpp",
@@ -144,9 +145,10 @@ void build(Void::Build::Project &project) {
auto index_tests = suite("vls_index_tests", {"tests/index/SymbolIndexTests.cpp"});
auto navigation_tests = suite("vls_navigation_tests", {"tests/navigation/NavigationTests.cpp"});
auto reflection_tests = suite("vls_reflection_tests", {"tests/reflection/ProvenanceTests.cpp"});
auto feature_tests = suite("vls_feature_tests", {"tests/features/CompletionTests.cpp",
"tests/features/IndexNavigationTests.cpp",
"tests/features/SignatureHelpTests.cpp"});
auto feature_tests =
suite("vls_feature_tests",
{"tests/features/CompletionTests.cpp", "tests/features/IndexNavigationTests.cpp",
"tests/features/SignatureHelpTests.cpp", "tests/features/DocumentSymbolsTests.cpp"});
auto live_worker = project.executable("vls_live_worker_fixture");
live_worker.cxx_standard(CxxStandard::Cxx26)
.sources({"tests/debug/LiveWorkerFixture.cpp"})