diff --git a/src/vs/editor/contrib/codeAction/browser/codeAction.ts b/src/vs/editor/contrib/codeAction/browser/codeAction.ts index df09d452f50..87eda860c58 100644 --- a/src/vs/editor/contrib/codeAction/browser/codeAction.ts +++ b/src/vs/editor/contrib/codeAction/browser/codeAction.ts @@ -271,7 +271,7 @@ export async function applyCodeAction( label: item.action.title, quotableLabel: item.action.title, code: 'undoredo.codeAction', - respectAutoSaveConfig: true, + respectAutoSaveConfig: codeActionReason !== ApplyCodeActionReason.OnSave, showPreview: options?.preview, }); }