-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
enhancementNew feature or requestNew feature or requestlanguage serverIssues or Pull Requests related to language servers.Issues or Pull Requests related to language servers.
Description
Description
Language servers can provide additional, detailed, highlights for code called 'semantic tokens'. These provide more contextual information about symbols. For instance, the different between a global constant and a constant variable.
These should work together with tree-sitter highlights to improve syntax highlighting clarity and quality.
Alternatives Considered
Not supporting semantic highlights 👎
Additional Context
This will be implemented in a few phases:
- Start with work in the editor to support multiple highlighters: Multiple Highlighter Support CodeEditSourceEditor#273
- Add the ability to read semantic tokens from language servers: LSP Semantic Token Decoder, Improve LSP-CodeFileDoc Arch #1951.
- Add a mapping from LSP semantic tokens to the editor's highlight providing protocol
Related issues:
Screenshots
From VSCode's semantic highlight guide:
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlanguage serverIssues or Pull Requests related to language servers.Issues or Pull Requests related to language servers.
Type
Projects
Status
🏁 Complete

