-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Quick fix all showing up even if there is only one error #21458
Comments
Isn't this desirable? If you bound a key combination to |
This is something that should be handled on the IDE side. Ideally we do not want to require for all errors just to produce quick fixes (getting errors is expensive). A simple approximation here is if the diagnostic code has been reported only once in this file, then you can ignore the fixId, and not show the additional menu item. |
Ok, I can make this change for VS Code 1.20. Just to make sure I understand: it is safe to assume that any diagnostic that only appears once in a file will not have a "fix all" action? |
I think we will always provide a fix-all action, but the action would only end up fixing one thing (since there is only one diagnostic). |
Code
Using VS Code insiders, trigger quick fix on
prop
infoo
Expected behavior:
Only a single code action is shown
Actual behavior:
The base code action and a
quick fix all
code action are shown. The latter doesn't make sense as there is only a single error in the file@andy-ms Is this something we are supposed to handle on the VS Code side or should
getCombinedCodeFix
be smarter here?The text was updated successfully, but these errors were encountered: