Open
Description
Does this issue occur when all extensions are disabled?: No – as it's a general problem with extensions.
- VS Code Version: 1.100.2
- OS Version: macOS 15.4.1
Steps to Reproduce:
- Run a project inside a dev container with Python and/or GitHub Copilot extension (many other extensions will probably work as well)
- From inside the dev container open an integrated local terminal
- Inspect the environment variables (
env
or via "Show Environment Contributions")
The extensions inject environment variables that reference paths or irrelevant at all in the local shell.
Trimmed output of "Show Environment Contributions":
# Terminal Environment Changes
## Extension: vscode.git
Enables the following features: git auth provider
- `GIT_ASKPASS=/vscode/vscode-server/bin/linux-arm64/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/extensions/git/dist/askpass.sh`
- `VSCODE_GIT_ASKPASS_NODE=/vscode/vscode-server/bin/linux-arm64/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/node`
- `VSCODE_GIT_ASKPASS_EXTRA_ARGS=`
- `VSCODE_GIT_ASKPASS_MAIN=/vscode/vscode-server/bin/linux-arm64/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/extensions/git/dist/askpass-main.js`
- `VSCODE_GIT_IPC_HANDLE=/tmp/vscode-git-7fe25dbcc7.sock`
## Extension: GitHub.copilot-chat
Enables use of the `copilot-debug` command in the terminal.
- `PATH=${env:PATH}:/home/user/.vscode-server/data/User/globalStorage/github.copilot-chat/debugCommand`
## Extension: ms-python.debugpy
Enables use of [no-config debugging](https://github.com/microsoft/vscode-python-debugger/wiki/No%E2%80%90Config-Debugging), `debugpy <script.py>`, in the terminal.
- `PYDEVD_DISABLE_FILE_VALIDATION=1`
- `VSCODE_DEBUGPY_ADAPTER_ENDPOINTS=/home/user/.vscode-server/extensions/ms-python.debugpy-2025.8.0-linux-arm64/.noConfigDebugAdapterEndpoints/endpoint-3004ce93f7e4ecfc.txt`
- `PATH=${env:PATH}:/home/user/.vscode-server/extensions/ms-python.debugpy-2025.8.0-linux-arm64/bundled/scripts/noConfigScripts`
- `BUNDLED_DEBUGPY_PATH=/home/user/.vscode-server/extensions/ms-python.debugpy-2025.8.0-linux-arm64/bundled/libs/debugpy`
## Extension: ms-python.python
Activated environment for `/var/env/bin/python`
- `PATH=/var/env/bin:${env:PATH}`
- `PS1=(env) ${env:PS1}`
All these extensions injected environment variables that aren't relevant or even available on my host/local system?
Metadata
Metadata
Assignees
Labels
No labels