nix-community / nixd

Nix language server, based on nix libraries [maintainer=@inclyc,@Aleksanaa]
https://github.com/nix-community/nixd
GNU Lesser General Public License v3.0
919 stars 31 forks source link

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

Closed inclyc closed 1 week ago

inclyc commented 1 week ago

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: https://github.com/nix-community/nixd/issues/573