Closed
Description
Environment data
- VS Code version: 1.49.2
- Extension version: v2020.9.112786
- OS and version: Windows 10 Version 2004 (Build 19041.508)
- Python version: 3.7.7
- Type of virtual environment used: pipenv
- Relevant/affected Python packages and their versions: N/A
- Relevant/affected Python-related VS Code extensions and their versions: N/A
- Value of the
python.languageServer
setting: Pylance
Expected behaviour
When launching a debug session, the extension should issue commands suitable for the shell specified in terminal.integrated.automationShell
, if this setting is defined, instead of terminal.integrated.shell
.
Actual behaviour
VS Code indeed launches the shell specified in terminal.integrated.automationShell
, however the extension issues commands suitable for terminal.integrated.shell
.
For instance, if terminal.integrated.shell.windows
points to PowerShell and terminal.integrated.automationShell.windows
points to cmd.exe
, the extension erroneously issues the & path/to/virtualenv/Scripts/Activate.ps1
command.
Steps to reproduce:
To reproduce on Windows:
- Set
terminal.integrated.shell.windows
to"C:\\Program Files\\PowerShell\\7\\pwsh.exe"
. - Set
terminal.integrated.automationShell.windows
to"C:\\Windows\\System32\\cmd.exe"
. - Launch a Python debugging session.