Skip to content

Extension not honoring terminal.integrated.automationShell #14221

Closed
@mbikovitsky

Description

@mbikovitsky

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:

  1. Set terminal.integrated.shell.windows to "C:\\Program Files\\PowerShell\\7\\pwsh.exe".
  2. Set terminal.integrated.automationShell.windows to "C:\\Windows\\System32\\cmd.exe".
  3. Launch a Python debugging session.

Metadata

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions