Skip to content

Refactor environment extension activation checks to use shouldEnvExtHandleActivation function#25895

Open
eleanorjboyd wants to merge 1 commit intomicrosoft:mainfrom
eleanorjboyd:tart-toucan
Open

Refactor environment extension activation checks to use shouldEnvExtHandleActivation function#25895
eleanorjboyd wants to merge 1 commit intomicrosoft:mainfrom
eleanorjboyd:tart-toucan

Conversation

@eleanorjboyd
Copy link
Copy Markdown
Member

Problem
Fixes #1284

When the Python Environments extension (ms-python.vscode-python-envs) is installed but python.useEnvironmentsExtension is not explicitly set, users see two interpreter status bar items — one from each extension.

Root Cause
The interpreter display in InterpreterDisplay used useEnvExtension() to decide whether to create/show its status bar. That function requires python.useEnvironmentsExtension to be explicitly true (defaults to false). Meanwhile, the envs extension activates whenever the setting is not explicitly false — treating unset/undefined as enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrated Terminal Window becomes active

2 participants