Project-local venv used by default in unrelated folder.
The extension knows how to find a variety of interpreter environments. This includes venvs in the ".venv" folder directly under the workspace folder, which are project-local. Such an env should not be visible to other workspace folders. I found a case where it gets used by default for a new workspace.
Repro:
- create folder: "testing"
- run
python3 -m venv testing/.venv - run
code testing - open a .py file
- set the interpreter env to "testing/.venv"
- close the folder
- create another folder: "eggs"
- run
code eggs - open a .py file
At that point the extension uses "testing/.venv" as the env. However, the workspace for the "eggs" folder should not know about that interpreter, since it is local to another workspace.