-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
fix: improve settings descriptions for actions triggered on save #230052
fix: improve settings descriptions for actions triggered on save #230052
Conversation
@microsoft-github-policy-service agree |
5943ca9
to
22bef86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also take a look at editor.codeActions.triggerOnFocusChange
, which will save in certain scenarios:
- auto save is
afterDelay
- editor code actions on save are set to
always
. - focus is changed
note that this only works atm for editor code actions on save, and not notebooks.
src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts
Outdated
Show resolved
Hide resolved
22bef86
to
2de9ac0
Compare
Not sure what you mean. This setting does not "save" in certain scenarios, it only triggers the code actions under some conditions, one of them being |
@elias-pap sorry, that's what I meant. I added that setting a few iterations ago since users with my point of bringing it up is because we don't mention that this setting which will run code actions when the file isn't saved explicitly. maybe adding a mention of this setting somehow could be helpful, although it is getting a bit verbose |
src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts
Outdated
Show resolved
Hide resolved
Right, that's what I had guessed.
I agree that it's a bit overkill. These settings are called "formatOnSave" and "codeActionsOnSave", so it's better to focus on what happens on save instead of repeating descriptions from other settings. The word "only" can be removed to avoid contradictions ( The point of this fix is to clarify that the user can both have autoSave -> afterDelay enabled, and format the file (or run code actions) by saving manually, at the same time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! thanks for the patience, looks good to me 👍
closes #230051