-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve color name editorUnnecessary.foreground
#51152
Comments
I would like to take this one if you guys think this is a
|
Thanks @wistcc but this is not a good choice. Easy code change but we need to discuss the design of this feature more. For example, should we fade out code instead of changing it all to grey? |
Falls under #51104 |
@mjbvz I'm just getting up-to-speed on the change. Thanks for adding the key Is there still an option to change the color or has that been removed? |
No, this option was been removed when we finalized the unused variable api |
This is pretty bad... we used to have unused code highlighted in yellow so it is crystal clear (fading is not enough as some themes use light grey for comments etc.) Now with 1.25.0, this feature seem to be broken (no Related: #51420 |
editorUnnecessary.foreground
got added as a new color.My first thought was that this is the color of an unnecessary editor.
TypeScript calls the ranges
unused spans
, so I suggest we useunused
, notunnecessary
editorUnusedCode.foreground
editor.unusedCodeForeground
(similar to editor.lineHighlightBackground)editor.unusedCodeForeground
We had some discussions in the ZRH standup that it should go along with future semantic highlights, but no proposal was made on what that would mean for the name.
@dbaeumer @jrieken @egamma
The text was updated successfully, but these errors were encountered: