Skip to content

Shell integration isn't enabled for Task terminals #205177

@karrtikr

Description

@karrtikr

Creating based on #204694 (comment).

Context: Python extension uses environment collection to activate all terminals, via shell integration.

Some users launch certain apps via tasks microsoft/vscode-python#22880, expecting environment to be activated, and hence are failing because shell integration isn't active for such terminals.

A couple of solutions we could go with:

  • Enable shell integration for task terminals, similar to how we're doing for debug terminals: Shell integration isn't enabled for Debug terminals #204694
  • If shell integration isn't available for a terminal type, fallback on applying environment collection using process creation instead. That is, if both "applyAtShellIntegration" and "applyAtProcessCreation" are set to true and shell integration is working, we only apply it at shell integration, otherwise we fallback to only apply it at process creation.

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codefeature-requestRequest for new features or functionalitytasksTask system issuesterminal-shell-integrationShell integration infrastructure, command decorations, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions