Skip to content

Commit c9023ac

Browse files
committed
Make sure to clean after shell startup changes when off
1 parent 44d9734 commit c9023ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/features/terminal/terminalManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ export class TerminalManagerImpl implements TerminalManager {
129129
await this.handleSetupCheck(shells);
130130
}
131131
} else {
132-
traceVerbose(`Auto activation type changed to ${actType}`);
132+
traceVerbose(`Auto activation type changed to ${actType}, we are cleaning up shell startup setup`);
133+
// Teardown scripts when switching away from shell startup activation
134+
await Promise.all(this.startupScriptProviders.map((p) => p.teardownScripts()));
133135
this.shellSetup.clear();
134136
}
135137
}

0 commit comments

Comments
 (0)