Commit Graph
3 Commits
Author SHA1 Message Date
faumaray 4b534c61ae 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.
2026-12-05 23:56:39 +03:00
faumaray 816c38da1e Mark same-file definitions in semantic tokens
The server legend gains a declaration modifier, and EditorDiagnostics
emits the definition-name token with it when the definition lies in the
same document. No type token is emitted because the canonical type has
no source span. Registered tests cover modifier encoding and the
overlap rule; a real stdio session showed the modifier on both
definition names.
2026-12-05 18:27:17 +03:00
faumaray 12a71ff692 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.
2026-12-05 15:19:42 +03:00