LSP-OmniSharp icon indicating copy to clipboard operation
LSP-OmniSharp copied to clipboard

semantic highlighting, coloring unused code differently

Open ssoher opened this issue 2 years ago • 12 comments

Consider the following code, I want to "dim" or use custom coloring on the unreachable or unused code. Couldn't find a way to achieve this with semantic highlighting, the LSP documentation doesn't provide a semantic token specifically for this it seems, or I did not notice it. Is this possible and supported and if so what is the correct way to add this to a custom color scheme?

#if false
// Some code that does not get compiled because it's wrapped within #if false
#endif

ssoher avatar Nov 20 '22 19:11 ssoher