From a618491ab18b71e01c8452cf2dd402894cc09744 Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 8 Nov 2022 12:53:07 +0100 Subject: [PATCH] Set the `respectAutoSaveConfig` to false whenever applying workspace edit via code actions on save https://github.com/microsoft/vscode/issues/165326 --- src/vs/editor/contrib/codeAction/browser/codeAction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }); }