Tokenize observer-reported type names

The semantic token legend gains a type entry, and the server emits it
for each class name span reported by the observer when it lies in the
open document. The canonical type itself is still not tokenized
because it has no source span. Registered tests cover the legend index,
and a real stdio session decoded the class names as type tokens beside
the function and declaration tokens.
This commit is contained in:
faumaray committed 2026-12-05 23:56:39 +03:00
1 parent 86b9923532
commit 4b534c61ae
7 files changed
+37 -3

No files matched your search

+11
View File
@@ -79,6 +79,17 @@ 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 type tokens in semantic tokens
The legend now has a second token type, `type`, and the server emits it for each
observer-reported class name span that lies in the open document (from the
retained type facts). The canonical type itself still has no source span and is
not tokenized. Registered `vls_feature_tests` cover the legend index. A real
stdio session over the `Base`/`DerivedA`/`DerivedB` fixture decoded
`[(1, 7, 8, 1, 0), (2, 7, 8, 1, 0), (3, 9, 6, 0, 1), ...]` - the two class names
as type tokens and the definition names with the declaration modifier. All 18
native suites and all 18 CMake tests passed.
## December 5 type hierarchy over LSP
Occurrences now carry their result type uid, decoded types are retained per