You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This a request from the C# for VS Code extension to provide a way for a diagnostic to present itself as "faded" code. Note that this is orthogonal to the squiggle that appears. It's completely expected that a diagnostic could be "faded" while still appearing with a red, green, or no squiggle.
This is needed to support core editing experiences that we have in Visual Studio for code fixes like "Remove Unnecessary Usings", or "Remove Redundant Cast".
Potentially, that's how it's ultimately implemented under the hood in VS as presentation. Logically, we included in the Roslyn diagnostics API. I'll leave it up to you all to figure out how you'd best expose this to VS Code extensions.
Johannes Rieken (@jrieken) TypeScript in VS Code now fades unused members--what API do they use to do that? It sounds like that's the same as what's requested here?
Activity
jrieken commentedon Feb 15, 2017
alexandrudima This might be fitting into semantic highlighting?
DustinCampbell commentedon Feb 15, 2017
Potentially, that's how it's ultimately implemented under the hood in VS as presentation. Logically, we included in the Roslyn diagnostics API. I'll leave it up to you all to figure out how you'd best expose this to VS Code extensions.
0xdeafcafe commentedon Apr 7, 2018
Any progress on this?
jrieken commentedon Apr 9, 2018
no progress on this
rchande commentedon Jun 13, 2018
Johannes Rieken (@jrieken) TypeScript in VS Code now fades unused members--what API do they use to do that? It sounds like that's the same as what's requested here?
mjbvz commentedon Jul 3, 2018
Addressed by #51104
microsoft/language-server-protocol#500 tracks this for the LSP