Skip to content

✨ Semantic Highlights #1950

Closed
Closed
@thecoolwinter

Description

@thecoolwinter

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:

Related issues:

Screenshots

From VSCode's semantic highlight guide:

Without semantic highlights:
no-semantic-highlighting

With semantic highlights:
with-semantic-highlighting

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlanguage serverIssues or Pull Requests related to language servers.

Type

No type

Projects

Status

🏁 Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions