Closed
Description
Current Version
0.6.1
Background
Syntax highlighting is currently done on the client, which means that each client implements their own logic and deals with their own bugs. This is because LSP historically did not provide a way of highlighting a document via protocol.
Proposal
Upcoming LSP 3.16 has support for textDocument/semanticTokens
which the server could implement and provide a single source of truth for how to highlight a document.
NodeJS client implementation is available in microsoft/vscode-languageserver-node#367