-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
TS "function" color is changed when it's not used #50135
Comments
This is due to microsoft/TypeScript#22388 -- if it's not desired we could revert that. |
@andy-ms I find it unexpected/distracting personally. This would probably drive me to disable it but I wanted to dogfood for a while longer 😄 |
@andy-ms Do you know what VS does for C#? Do they grey out just the symbol name:? The entire signature? Entire declaration? |
@amcasey might know. |
I don't think C# reports it for functions. It's basically at the expression and statement levels. |
The imports are grayed out, the cast is grayed out, and the unused local is squiggled (since it's a warning). Everything else is ignored. Of course, it may be that widely used analyzers report more aggressively. |
My personal preference would be to gray out the keyword ( |
Yes I'd prefer this as well. Makes it more obvious that something is unused |
Upstream issues for June: microsoft/TypeScript#24500 We decided to just color the symbol name (except for imports) |
Should be fixed by microsoft/TypeScript#24566. |
Fixed upstream in TS 2.9.2 |
Seems inconsistent with how variables work:
The text was updated successfully, but these errors were encountered: