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
When having a workspace with multiple projects (i.e. a folder for each project, and each has different virtualenv), creating a new terminal window activates the first project's virtualenv, regardless of currently active project or explicit selection.
Expected behavior
The proper virtualenv should be activated in the newly opened terminal window for every project.
Actual behavior
The first project's virtualenv (first in the workspace folder list) is activated for every project.
Steps to reproduce
Create two folders, representing two different projects.
Create two virtualenvs.
Add both folders to a vscode workspace, then assign the first project to a virtualenv and the second project to the other virtualenv. As shown on the following screenshots, vscode handles the virtualenv selection correctly whenever I change between projects, i.e. switching back and forth between the files of the two projects:
When selecting a file from the second project, everything seems to be correct:
Create a new terminal window, and try to select project 2.
However, instead of activating the correct virtualenv (in this case, it should be demo2), the virtualenv assigned to the first project of the workspace is activated:
Environment data
VS Code version: Code 1.34.0 (a622c65b2c713c890fcf4fbf07cf34049d5fe758, 2019-05-15T21:59:37.030Z)
Extension version: 2019.5.17517 (30 May 2019)
OS version: Windows_NT x64 10.0.17134
Python version: not relevant, but tested with all combinations of version 2.7 and 3.5
Type of virtual environment used: virtualenv
Relevant/affected Python packages and their versions: n.a.
The text was updated successfully, but these errors were encountered:
Summary
When having a workspace with multiple projects (i.e. a folder for each project, and each has different virtualenv), creating a new terminal window activates the first project's virtualenv, regardless of currently active project or explicit selection.
Expected behavior
The proper virtualenv should be activated in the newly opened terminal window for every project.
Actual behavior
The first project's virtualenv (first in the workspace folder list) is activated for every project.
Steps to reproduce
Create two folders, representing two different projects.
Create two virtualenvs.
Add both folders to a vscode workspace, then assign the first project to a virtualenv and the second project to the other virtualenv. As shown on the following screenshots, vscode handles the virtualenv selection correctly whenever I change between projects, i.e. switching back and forth between the files of the two projects:


When selecting a file from the second project, everything seems to be correct:
Create a new terminal window, and try to select project 2.

However, instead of activating the correct virtualenv (in this case, it should be

demo2
), the virtualenv assigned to the first project of the workspace is activated:Environment data
The text was updated successfully, but these errors were encountered: