Skip to content

Support semantic syntax highlighting #264

Closed
@radeksimko

Description

@radeksimko

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

Related LSP methods

https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/#textDocument_semanticTokens

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions