[Python] Unexpected virtual environment activating microsoft/vscode#180486
For workspace like:
.
├── AandB.code-workspace
├── DirA
│ ├── A.py
│ └── venvA
└── DirB
├── B.py
└── venvB
Open A.py
and press Ctrl+`, the terminal is created at DirA
and automatically activates venvA
. That's what we expect VS Code to do. However, open B.py
and press Ctrl+`, the terminal is created at DirB
but activates venvA
, not venvB
!, That's not what we expect. If we press Ctrl+Shift+`, and select DirB
, VS Code will activate venvB
in terminal, which is what we want when open B.py
and press Ctrl+`.