From ca7f35426073034e331fbe733b644d06da0fa68a Mon Sep 17 00:00:00 2001 From: Justin Chen <54879025+justschen@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:31:24 -0700 Subject: [PATCH] Do not allow code actions to run for autosave after delay (#193479) disable code actions specifically for autosave after delay: --- .../workbench/contrib/codeEditor/browser/saveParticipants.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts b/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts index fc93eb31ecd..d29cbedb139 100644 --- a/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts +++ b/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts @@ -285,6 +285,11 @@ class CodeActionOnSaveParticipant implements ITextFileSaveParticipant { if (!setting) { return undefined; } + + if (env.reason === SaveReason.AUTO) { + return undefined; + } + const convertedSetting: { [kind: string]: string } = {}; for (const key in setting) { if (typeof setting[key] === 'boolean') {