You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecate 'semantic_tokens' config in favor of 'augmentsSyntaxTokens'
The `augmentsSyntaxTokens` client capability can be used to indicate
that the client is going to combine existing syntax tokens with the
semantic tokens of the server. This can not only reduce the amount of
data that is transferred over the protocol but can also lead to better
highlighting as syntax tokens often more accurately distinguish between
different language constructs on the syntax level. An example would be
keywords where the LSP protocol has a single standard token type
compared to syntax highlighting where different keywords are often
differentiated between based on their purpose.
The 'semantic_tokens' config had been added for this purpose. The
'partial' option is used to prevent LSP semantic tokens to override
existing syntax highlighting of the editor. The benefit of the client
capability is that this decision is automatically made by supported
editors instead of relying on user to select the right configuration.
Copy file name to clipboardExpand all lines: schema.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@
33
33
"default": []
34
34
},
35
35
"semantic_tokens": {
36
-
"description": "Set level of semantic tokens. `partial` only includes information that requires semantic analysis.",
36
+
"description": "Deprecated. The client should set the 'augmentsSyntaxTokens' capability.\n\nSet level of semantic tokens. `partial` only includes information that requires semantic analysis.",
Copy file name to clipboardExpand all lines: src/tools/config.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
},
33
33
{
34
34
"name": "semantic_tokens",
35
-
"description": "Set level of semantic tokens. `partial` only includes information that requires semantic analysis.",
35
+
"description": "Deprecated. The client should set the 'augmentsSyntaxTokens' capability.\n\nSet level of semantic tokens. `partial` only includes information that requires semantic analysis.",
0 commit comments