Stream: t-compiler/rust-analyzer

Topic: rainbow highlighting

Jonas Schievink [he/him] (Mar 11 2021 at 01:35, on Zulip):

Is there any way to turn on rainbow highlighting in VS Code? The code seems to only be hooked up to the CLI interface, and I can't find it in the docs either

Laurențiu (Mar 11 2021 at 05:11, on Zulip):

It's gone now, and was broken before. I don't think it plays very well with semantic highlighting. It worked when we hod our own implementation of that.

matklad (Mar 11 2021 at 11:11, on Zulip):

Yeah, it's a bit of a dead code now sadly. Though, I wonder if we can resuscitate that? I imagine we can add 32 hard-coded modifires with names like "RainbowN", and then just apply those in semantic highlighting?

matklad (Mar 11 2021 at 11:14, on Zulip):

welp, that won't work, because modifiers are encoded as bitset, so there are 32 total.

So the client side needs to implement the custom decorator-based logic (

Last update: Jul 29 2021 at 22:00UTC