Skip to content

Commit 5d44f62

Browse files
committed
Make sure to switch to COMMAND when user declines profile modification
1 parent 5a33232 commit 5d44f62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/features/terminal/shellStartupSetupHandlers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ export async function handleSettingUpShellProfile(
5555
});
5656
providers.forEach((provider) => callback(provider, false));
5757
}
58+
} else {
59+
traceInfo(`User declined shell profile setup for ${shells}, switching to command activation`);
60+
await Promise.all(providers.map((provider) => provider.teardownScripts()));
61+
await setAutoActivationType(ACT_TYPE_COMMAND);
5862
}
5963
}
6064

0 commit comments

Comments
 (0)