-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Make "editor.codeActionsOnSave" a resource setting #84288
Comments
/cc @jrieken |
More background: I wanted to use this setting to allow users to configure whether eslint auto fix on save is enabled or not. I can easily see use cases where this is enabled for eslint for a workspace folder A but disabled for a workspace folder B. This is currently supported for the eslint specific setting |
Actually the setting is read here: So I think it would make perfect sense to declare the settings as a resource setting since it is always read relative to a resource. @mattbierner any objection if I change this in VS Code source code. |
No, I think this was just an oversight. Making it a resource setting sounds good |
Thanks for addressing this so quickly. |
Currently the setting
"editor.codeActionsOnSave"
is not defined as a resource setting and therefore can't be overriden on a folder level.However to migrate existing willSave handlers to code actions on save it would be very helpful if the setting can be overridden on a folder level as well. Then for ESLint I would add something like this to the settings:
which will enable source fix all for eslint.
Without this I need to tell users that they have to maintain to settings one eslint specific and the
"editor.codeActionsOnSave"
to enable / disable this.The text was updated successfully, but these errors were encountered: