Language server with semantic highlight in VSCode

不打扰是莪最后的温柔 提交于 2019-12-12 09:38:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!