Skip to main content

Module semantic_tokens

Module semantic_tokens 

Source
Expand description

The semantic-token legend’s names: the single source for the language server’s legend and for the editor contract (cargo xtask editor-contract).

Array order is the wire encoding (clients index into these arrays): entries are append-only, never reordered, and bynk-lsp’s legend_is_frozen test pins them. Token types are standard where faithful (type, function) and custom for the Bynk-distinctive kinds (capability, service, agent, provider). They live here, a leaf crate with no LSP dependency, so tooling that only needs the names does not link the language server.

Constants§

STANDARD_MODIFIERS
The LSP-standard token modifiers, likewise.
STANDARD_TYPES
The LSP-standard token types an editor extension does NOT redeclare: VS Code provides and themes them. Every other entry of TOKEN_TYPES is Bynk-custom and must be declared (and scope-mapped) by the extension.
TOKEN_MODIFIERS
The token modifiers, in wire order (bit 0 first).
TOKEN_TYPES
The token types, in wire order.