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:
faumaray committed 2026-12-05 15:19:42 +03:00
1 parent 946b1a005e
commit 12a71ff692
12 files changed
+220 -8

No files matched your search

@@ -52,6 +52,8 @@ class EditorDiagnostics {
// requested range. Only fixes proven in the owner snapshot are offered.
[[nodiscard]] Void::LanguageServer::Protocol::Json code_actions(std::string_view uri,
Documents::Range range) const;
// Semantic tokens for the document's proven occurrences, delta-encoded.
[[nodiscard]] Void::LanguageServer::Protocol::Json semantic_tokens(std::string_view uri) const;
struct NavigationReply {
Void::LanguageServer::Protocol::Json result;