-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Workbench should provide language agnostic actions to apply all quick fixes to a file #5650
Comments
I think we should do that in the quick fix UI. When there is more than one action we should offer Apply all |
ESLint does exactly what you recommend. The use case for an action / command is to bind it to a short cut. Easier to trigger then setting a cursor on a problem, clicking the light bulb, .... I doubt that a lot of devs do F1 > ..... |
stretch for april, tho rain on sunday |
Rain on Saturday and snow on Sunday :-) |
Accepted :-) |
to clarify: we want a command that fetches and applies all code actions UI-less? not another entry in the code action UI, correct? |
Actually this isn't simple. The problem is that our
Then the challenge is to know when to stop. Because it doesn't mean that running that command make the code action go away... |
OK. See the problem. And we can't hook an handler for a language either since there can be more than one 'quick fix' provider per language. May be having a command 'ELint - fix all problems' is not a bad idea afterall. |
No action planned because there are challenges as outlined above |
Agree :-) |
Instead of extensions and language servers providing their own language specific actions the workbench should provide actions to apply all available quick fixes to a file. I think that this is even possible with the extension API today since we can ask for all code actions for a given range.
See microsoft/vscode-eslint#70.
The text was updated successfully, but these errors were encountered: