Do not run code actions on auto save

Fixes #121155
This commit is contained in:
Matt Bierner
2021-04-14 17:14:59 -07:00
parent 063bc4b7b1
commit fe7f4c0241
@@ -272,9 +272,11 @@ class CodeActionOnSaveParticipant implements ITextFileSaveParticipant {
return;
}
if (env.reason === SaveReason.AUTO) {
// Do not run code actions on auto save
if (env.reason !== SaveReason.EXPLICIT) {
return undefined;
}
const textEditorModel = model.textEditorModel;
const settingsOverrides = { overrideIdentifier: textEditorModel.getLanguageIdentifier().language, resource: model.resource };