Skip to content

Commit e2ad6b5

Browse files
authored
Merge pull request microsoft#165807 from microsoft/joh/responsible-antelope
Set the `respectAutoSaveConfig` to false for code action on save
2 parents 9d5741f + a618491 commit e2ad6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/codeAction/browser/codeAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export async function applyCodeAction(
271271
label: item.action.title,
272272
quotableLabel: item.action.title,
273273
code: 'undoredo.codeAction',
274-
respectAutoSaveConfig: true,
274+
respectAutoSaveConfig: codeActionReason !== ApplyCodeActionReason.OnSave,
275275
showPreview: options?.preview,
276276
});
277277
}

0 commit comments

Comments
 (0)