问题
I'd like to write a language server to VSCode
with semantic highlight support. The language I'm using has very complex rules, so I'd like not to rely on a tokenizer to distinguish between identifiers and keywords.
I already have a language service in VS Community
, where I've written my own Classifier. It's possible to write own classifier in VSCode
, or the only way to colorize a document is add TextMate
language specification file to a VScode
package?
回答1:
Semantic coloring is not supported by the LSP as of VS Code 1.29.
There are two main issues currently tracking this feature:
- LSP issue
- VS Code issue which tracks adding semantic coloring to the VS Code api
来源:https://stackoverflow.com/questions/35287143/language-server-with-semantic-highlight-in-vscode