Add another token.
The token start line number (absolute value).
The token start character (absolute value).
The token length in characters.
The encoded token type.
The encoded token modifiers.
Add another token. Use only when providing a legend.
The range of the token. Must be single-line.
The token type.
The token modifiers.
Finish and create a SemanticTokens
instance.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
A semantic tokens builder can help with creating a
SemanticTokens
instance which contains delta encoded semantic tokens.