Skip to content

Terminal activates the other workspace folder environment #2037

Closed as not planned

Description

Environment data

  • Python Environments extension version: 1.43.0
  • Python extension (ms-python.python) version: 2026.18.0
  • VS Code version (Help → About): 1.106.0
  • OS and version: Windows 11
  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.7 (python.org)
  • Environment manager in use (venv / conda / pyenv / poetry / pipenv / system / uv / other): venv
  • Shell (bash / zsh / fish / pwsh / cmd / other): pwsh 7.4
  • Remote / container scenario (none / WSL / SSH Remote / Dev Container / Codespaces): none
  • Workspace type (single folder / multi-root / mono-repo): multi-root: api and web
  • Is this a regression? If yes, last known working extension version: Unknown

Repro Steps

  1. Open a two-folder workspace with api and web, each containing its own .venv.
  2. Select web.venv as the Python environment for web.
  3. Open a new PowerShell terminal from the web folder.
  4. Run python -c "import sys; print(sys.executable)".

Expected behavior

The new terminal uses web.venv.

Actual behavior

It prints the interpreter from api.venv instead. Reloading the window does not help.

Logs

Not captured.

Additional context

Activity

  1. StellaHuang95 commented on Nov 19, 2026

    @StellaHuang95
    ContributorAuthor

    Closing this authorized synthetic validation fixture for microsoft/vscode-python-environments#2030. This is not a real product bug or feature request; no product triage is needed.

    The workflow classified the report as relevant and left it alone. This manual closure is only fixture cleanup.

    Opening moderation run.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions