Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Semantic Highlights #1950

Open
thecoolwinter opened this issue Dec 19, 2024 · 0 comments
Open

✨ Semantic Highlights #1950

thecoolwinter opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request language server Issues or Pull Requests related to language servers.

Comments

@thecoolwinter
Copy link
Collaborator

thecoolwinter commented Dec 19, 2024

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

@thecoolwinter thecoolwinter added enhancement New feature or request language server Issues or Pull Requests related to language servers. labels Dec 19, 2024
@thecoolwinter thecoolwinter moved this from 🆕 New to 🏃‍♂️ In Progress in CodeEdit Project Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language server Issues or Pull Requests related to language servers.
Projects
Status: 🏃‍♂️ In Progress
Development

No branches or pull requests

1 participant