@Jonas Schievink I am adding features to the once_cell crate, and the new handling of
#[cfg] attributes is so nice!
If I didn't knew the hacky way it is implemented, I'd assumed a first-class feature :D
What's so hacky about it though? It's not particularly clean, but everything happens in the right places IMO (at least in the current architecture)
Like, the fact that it is an unused diagnostics, which just doesn't show an error
Yeah, I suppose it's not really meant for this :D
But it fits well, and looks exactly like it should in VS Code
It's also going to make testing the cfg configuration REALLY easy on the front-end.
I also love it FWIW :)
editorUnnecessaryCode.opacity is the theme setting for it: