Skip to content

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.

2 participants