Setting python.terminal.activateEnvironment: true results in loading env variables from the .env file #23865
Labels
bug
Issue identified by VS Code Team member as probable bug
documentation
triage-needed
Needs assignment to the proper sub-team
The expected behavior, as stated by the online docs, is that the terminal is not influenced by the contents of the
python.envFile
:The documentation of the python.terminal.activateEnvironment setting, also does not reference the .env file as part of the activation:
However, when using an .env file in conjunction with the python.terminal.activateEnvironment setting, the contents of the .env file are applied to the terminal, which is, to my knowledge, not explicitly documented, but probably should be?
The behavior was replicated by me on Linux (bash) and windows (cmd) with pip .venvs and vscode-python v2024.10.0.
Taking a look at the environment contributions shows environment variables set in the .env file, see second to last line VAR.
The text was updated successfully, but these errors were encountered: