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
@@ -79,6 +79,19 @@ the upgraded snapshot (keeping `snapshot.prev.json`) and rewrites a legacy
|
||||
about 25-30s in a Debug build (it passed VBS at ~27s); the full CMake run then
|
||||
passed 18/18.
|
||||
|
||||
## December 5 semantic tokens from stock occurrences
|
||||
|
||||
`include/vls/features/SemanticTokens.hpp` normalizes occurrence tokens
|
||||
(sorted by position, empty/overlong/duplicate/overlapping tokens dropped, the
|
||||
earlier token wins, count bounded) and delta-encodes them for LSP.
|
||||
`EditorDiagnostics::semantic_tokens` emits one `function` token per proven call
|
||||
occurrence in the owner snapshot; the server advertises
|
||||
`semanticTokensProvider` with a one-type legend and serves
|
||||
`textDocument/semanticTokens/full`. `vls_feature_tests` grew from 50 to 54
|
||||
cases. A real stdio session with the stock observer decoded
|
||||
`semanticTokens: 1 first: [(18, 33, 7, 0)]` - the `fnv1a64` callee token. All 18
|
||||
native suites and all 18 CMake tests passed.
|
||||
|
||||
## December 5 code actions from compiler fixes
|
||||
|
||||
GCC's SARIF `fixes` are now decoded: `CompilerDiagnostic::fixes` carries a
|
||||
|
||||
Reference in new issue
Block a user