-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Run code actions on save #42092
Comments
A few potential designs for this feature:
|
I think I'd prefer option 1. We could help with the discoverability by adding the predefined code action kinds to the json-schema. It's also more similar to the keybindings story we have around code actions. |
Fixes microsoft#42092 Adds a way to run code actions on save using the `editor.codeActionsOnSave` setting. This setting lists code action kinds to be executed automatically when the document is saved.
* Add editor.codeActionsOnSave Fixes #42092 Adds a way to run code actions on save using the `editor.codeActionsOnSave` setting. This setting lists code action kinds to be executed automatically when the document is saved. * Use object instead of array for config option * Adding timeout * Fix description * Fix relative path
Now that we have added code action kinds we could denote them to run on save. Similar to the new command a new setting could exists, e.g.
editor.onSaveCodeaction: [quickfix.cleanup, etc.]
The text was updated successfully, but these errors were encountered: