From dfe1bf8e68acab195fa0f8817ff134f8a8b65051 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 3 Feb 2026 08:29:13 -0800 Subject: [PATCH] Properly await promise in cleanupStartupScripts --- src/features/terminal/shellStartupSetupHandlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/terminal/shellStartupSetupHandlers.ts b/src/features/terminal/shellStartupSetupHandlers.ts index 0a818ee2..1af0b3f6 100644 --- a/src/features/terminal/shellStartupSetupHandlers.ts +++ b/src/features/terminal/shellStartupSetupHandlers.ts @@ -65,10 +65,10 @@ export async function handleSettingUpShellProfile( export async function cleanupStartupScripts(allProviders: ShellStartupScriptProvider[]): Promise { await Promise.all(allProviders.map((provider) => provider.teardownScripts())); if (getAutoActivationType() === ACT_TYPE_SHELL) { - setAutoActivationType(ACT_TYPE_COMMAND); traceInfo( 'Setting `python-envs.terminal.autoActivationType` to `command`, after removing shell startup scripts.', ); + await setAutoActivationType(ACT_TYPE_COMMAND); } setImmediate(async () => await showInformationMessage(ActivationStrings.revertedShellStartupScripts)); }