Skip to content

include debug extension host env in shell env (#241078) - #298276

Merged
Megan Rogge (meganrogge) merged 3 commits into
microsoft:mainfrom
eliericha:richa/shell-env
Mar 2, 2026
Merged

Megan Rogge (meganrogge) merged 3 commits into
microsoft:mainfrom
eliericha:richa/shell-env

Conversation

@eliericha

Copy link
Copy Markdown
Contributor

This PR proposes a fix for #241078 .

With some investigation and some help from AI, I managed to produce this fix which includes adds the debug extension host environment to the terminal environment.

With that I was able to observe that environment variables added in the env property of a launch configuration or through an env file and the envFile, are correctly inherited into terminals spawned by the debugged instance.

More specifically, tasks now inherit the environment provided by the debug launch configuration.

Given my little experience with the codebase, I'm not sure this works in all configurations (web, electron, remote, etc) so guidance would be appreciated to steer this in the right direction.

Thanks!

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Assignees

Couldn't load assignees.