FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Prevent double/triple activation from two extensions by anthonykim1 · Pull Request #25849 · microsoft/vscode-python · GitHub

Prevent double/triple activation from two extensions - #25849

Merged
Eleanor Boyd (eleanorjboyd) merged 3 commits into
mainfrom
anthonykim1/fixDoubleTripleActivation
Mar 11, 2026
Merged

Prevent double/triple activation from two extensions#25849
Eleanor Boyd (eleanorjboyd) merged 3 commits into
mainfrom
anthonykim1/fixDoubleTripleActivation

Conversation

Copy link
Copy Markdown

Resolves: microsoft/vscode-python-environments#1325

Cause: The Python extension only backed off if the user explicitly opted into the envs extension (useEnvironmentsExtension: true). But the envs extension activates by default whenever it's installed — it only backs off if the setting is explicitly false. So in this case, (extension installed, setting not touched), both fired.

Added shouldEnvExtHandleActivation() — a function that mirrors the envs extension's own logic: "am I installed and not explicitly disabled?" Used it in all 3 places the Python extension triggers terminal activation to bail out when the envs extension will handle it. This covers global, workspace, and folder-level settings.

We want exactly one extension activates the terminal, never both, never neither.

Anthony Kim (anthonykim1) added this to the 1.112.0 milestone Mar 11, 2026
Anthony Kim (anthonykim1) added bug Issue identified by VS Code Team member as probable bug area-terminal labels Mar 11, 2026
Eleanor Boyd (eleanorjboyd) merged commit 172d9e6 into main Mar 11, 2026
86 checks passed
Eleanor Boyd (eleanorjboyd) deleted the anthonykim1/fixDoubleTripleActivation branch March 11, 2026 17:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-terminal bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When opening a new terminal, Python venv is activated twice

2 participants


Back | FazBrowse Home | New Git URL