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

nixd/lib/Controller: disable semantic tokens feature during init #616

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

inclyc
Copy link
Member

@inclyc inclyc commented Nov 15, 2024

Semantic tokens (current implementation) caused a lot of trouble for users.
The common reason is confusing attribute path coloring for "same" tokens.
i.e.

{
    program.a = 1;
    program.b = 2;
}

Those two "program"s are colored differently, (looks like a bug frankly).
So let's disable it for now, for UX improvement.
We can re-enable it later if we have a better implementation.

Link: #573

Semantic tokens (current implementation) caused a lot of trouble for users.
The common reason is confusing attribute path coloring for "same" tokens.
i.e.

```nix
{
    program.a = 1;
    program.b = 2;
}
```

Those two "program"s are colored differently, (looks like a bug frankly).
So let's disable it for now, for UX improvement.
We can re-enable it later if we have a better implementation.

Link: #573
@inclyc inclyc added bug Something isn't working documentation Improvements or additions to documentation labels Nov 15, 2024
@inclyc inclyc merged commit d6e2390 into main Nov 15, 2024
38 checks passed
@inclyc inclyc deleted the disable-semantic-tokens-default branch November 15, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant