Optionallegend: SemanticTokensLegendFinish and create a SemanticTokens instance.
OptionalresultId: stringAdd another token.
The token start line number (absolute value).
The token start character (absolute value).
The token length in characters.
The encoded token type.
OptionaltokenModifiers: numberThe encoded token modifiers.
Add another token. Use only when providing a legend.
The range of the token. Must be single-line.
The token type.
OptionaltokenModifiers: readonly string[]The token modifiers.
A semantic tokens builder can help with creating a
SemanticTokensinstance which contains delta encoded semantic tokens.