Behaviour
Despite python.terminal.activateEnvironment being disabled, the workspace’s Python environment is automatically activated in a new Terminal (source .venv/bin/activate is run)
Steps to reproduce:
Not sure how many of these are necessary (this may not be minimal) but they seem to be sufficient.
- Enable this extension
- Use fish shell as your shell
- Use uv to create a Python environment, stored in `.venv
- Set
python.terminal.activateEnvironment to false
- Create a new VSCode terminal
Bug: when you create a new terminal, the workspace’s Python environment is activated even though the corresponding setting is disabled. The first thing run in a new terminal is source "path/to/workspace/.venv/bin/activate.fish" (since I'm using fish).
Disabling this extension fixes the issue, which makes it seem like it's a problem with this particular extension (and not VSCode’s Python support or VSCode more generally).