Do not run code actions on auto save

Fixes #121155
上级 063bc4b7
......@@ -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 };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册