Serve semantic tokens from stock occurrences
A bounded core normalizes occurrence tokens (sorted, deduplicated, overlap-free, capped) and delta-encodes them. EditorDiagnostics emits one function token per proven call occurrence in the owner snapshot, and the server advertises a one-type legend and serves textDocument/semanticTokens/full. Registered tests cover normalization, encoding, overlap and bounds; a real stdio session decoded the fnv1a64 callee token.
This commit is contained in:
1 parent
946b1a005e
commit
12a71ff692
12 files changed
+220
-8
No files matched your search
@@ -72,6 +72,7 @@ void build(Void::Build::Project &project) {
|
||||
"src/features/DocumentSymbols.cpp",
|
||||
"src/features/TextStructure.cpp",
|
||||
"src/features/CodeActions.cpp",
|
||||
"src/features/SemanticTokens.cpp",
|
||||
"src/debug/live/LiveSession.cpp",
|
||||
"src/modules/ModuleWorkQueue.cpp",
|
||||
"src/modules/GccScan.cpp",
|
||||
@@ -151,7 +152,8 @@ void build(Void::Build::Project &project) {
|
||||
suite("vls_feature_tests",
|
||||
{"tests/features/CompletionTests.cpp", "tests/features/IndexNavigationTests.cpp",
|
||||
"tests/features/SignatureHelpTests.cpp", "tests/features/DocumentSymbolsTests.cpp",
|
||||
"tests/features/TextStructureTests.cpp", "tests/features/CodeActionsTests.cpp"});
|
||||
"tests/features/TextStructureTests.cpp", "tests/features/CodeActionsTests.cpp",
|
||||
"tests/features/SemanticTokensTests.cpp"});
|
||||
auto live_worker = project.executable("vls_live_worker_fixture");
|
||||
live_worker.cxx_standard(CxxStandard::Cxx26)
|
||||
.sources({"tests/debug/LiveWorkerFixture.cpp"})
|
||||
|
||||
Reference in new issue
Block a user