lsp: Make SemanticTokenServerCapabilities match the LSP spec

SemanticTokenSeverCapabilities doesn't deserealize because legend requires a tokenModifiers array, which not provided.
See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#semanticTokensLegend
This commit is contained in:
seshotake 2023-06-05 05:15:51 +03:00
parent 93392e5e02
commit 9c567fe039

View file

@ -194,6 +194,7 @@ class LanguageServer:
"semanticTokensProvider": {
"legend": {
"tokenTypes": ["enumMember"],
"tokenModifiers": [],
},
"full": True,
},