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_TYPESis 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.