Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/features/terminal/terminalManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ export class TerminalManagerImpl implements TerminalManager {
traceInfo(
`"python-envs.terminal.autoActivationType" is set to "${actType}", terminal should be activated by shell startup script`,
);
// If the shell is already set up (shellSetup.get(...) === true) then we can safely mark it activated so
// that the UI button shows the correct Deactivate option.
let isSetup = this.shellSetup.get(shellType);
if (isSetup && isActivatableEnvironment(environment) && !this.isActivated(terminal, environment)) {
this.ta.updateActivationState(terminal, environment, true);
}
}
}

Expand Down
Loading