Skip to content

Commit a618491

Browse files
committed
Set the respectAutoSaveConfig to false whenever applying workspace edit via code actions on save
microsoft#165326
1 parent ed1bc56 commit a618491

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)