You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Activated VirtualEnvs Are Ignored When Launching from CLI with Workspace File #25140
When we do, code doesn't pick up the activated virtualenv. This feature is supported, but there is an early exit check which documents an assumption that CLI launches and workspace files are not used together.
As such, vscode is started with an incorrect virtualenv (which is sticky if the user ever manually selected one). This has created meaningful confusion for our org and we haven't found a workaround.
Steps to reproduce:
Launch vscode with a code workspace file in an activated python virtual env.
Not seen:
VS Code was launched from an activated environment: 'infra-common', selecting it as the interpreter for workspace.
Extension version: 2025.6.1
VS Code version: Code 1.100.3 (Universal) (258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3, 2025-06-02T13:30:54.273Z)
OS version: Darwin arm64 24.5.0
Modes:
Activity
karthiknadig commentedon Jun 6, 2025
Thanks for creating the issue and PR for this.
Allow Activated Virtual Envs to Be Detected w/ a Workspace File (#25141)