Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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 6 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.