![]() ![]() The semanticTokenColors value "#ff0011" shown above applies to both type and all it's subtypes, including templateType.Īlong with custom token types, extensions can define how these are mapped to TextMate scopes. SemanticTokensLegend ( tokenTypes, tokenModifiers ) const provider : vscode. const tokenTypes = const tokenModifiers = const legend = new vscode. The editor will make requests to the providers when semantic tokens are needed. To implement semantic highlighting, language extensions can register a semantic token provider by document language and/or file name. line 13: getFoldingRanges is colored as a function.line 11: Range and Position are colored as classes and document as a parameter. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |