Skip to content

Conversation

@StellaHuang95
Copy link
Contributor

@StellaHuang95 StellaHuang95 commented Jan 16, 2026

The PR is a follow-up task to the sync meeting and the discussion in #861 (comment)

The PR fixes a bug where the python.defaultInterpreterPath setting was not being respected when opening new workspaces. Users who configured a specific Python interpreter path would see a different Python version selected instead.

The root cause is that the early return prevented api.setEnvironment() from ever being called, so the workspace environment was never actually set.

When the extension later queried for the workspace environment, the venvManager.get() method found nothing in the workspace-to-environment map and fell back to globalEnv.

Verified now the default is being used.
image

Also fixed wrong field used for sysPrefix.

@StellaHuang95 StellaHuang95 added the bug Issue identified by VS Code Team member as probable bug label Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant