Skip to content

API Request: Support for "faded" code #20219

Closed

Description

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".

fadedusingdirectives

cc Eilon Lipton (@Eilon)

Activity

  1. jrieken commented on Feb 15, 2017

    @jrieken
    Contributor

    alexandrudima This might be fitting into semantic highlighting?

  2. DustinCampbell commented on Feb 15, 2017

    @DustinCampbell
    MemberAuthor

    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.

  3. 0xdeafcafe commented on Apr 7, 2018

    @0xdeafcafe

    Any progress on this?

  4. jrieken commented on Apr 9, 2018

    @jrieken
    Contributor

    no progress on this

  5. rchande commented on Jun 13, 2018

    @rchande

    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?

  6. mjbvz commented on Jul 3, 2018

    @mjbvz
    Contributor

    Addressed by #51104

    microsoft/language-server-protocol#500 tracks this for the LSP

  7. locked and limited conversation to collaborators on Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateIssue identified as a duplicate of another issue(s)apifeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions