Skip to content

Commit f165623

Browse files
authored
Properly await promise in cleanupStartupScripts (#1156)
1 parent 78d7fe9 commit f165623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/terminal/shellStartupSetupHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ export async function handleSettingUpShellProfile(
6565
export async function cleanupStartupScripts(allProviders: ShellStartupScriptProvider[]): Promise<void> {
6666
await Promise.all(allProviders.map((provider) => provider.teardownScripts()));
6767
if (getAutoActivationType() === ACT_TYPE_SHELL) {
68-
setAutoActivationType(ACT_TYPE_COMMAND);
6968
traceInfo(
7069
'Setting `python-envs.terminal.autoActivationType` to `command`, after removing shell startup scripts.',
7170
);
71+
await setAutoActivationType(ACT_TYPE_COMMAND);
7272
}
7373
setImmediate(async () => await showInformationMessage(ActivationStrings.revertedShellStartupScripts));
7474
}

0 commit comments

Comments
 (0)