mejrs
April 22, 2021, 1:47pm
1
I'm actually not sure if this is a rust-analyzer thing or not (I think so?).
Currently, it fades out everything guarded by a cfg, like this:
As most of my code is in a cfg block, this actually makes it very annoying to read. Is there a way to turn it off?
3 Likes
This should work:
{
"rust-analyzer.diagnostics.disabled": [
"inactive-code"
]
}
6 Likes
mejrs
April 22, 2021, 2:16pm
3
It does! Thank you very much
Note that most rust-analyzer features won't work in that inactive code though. It'd be better to activate the feature (with rust-analyzer.cargo.features
or rust-analyzer.cargo.allFeatures
).
3 Likes
system
Closed
July 21, 2021, 2:29pm
5
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.