Environment from extensionHost debug configuration is not inherited by vscode.ShellExecution tasks #241078
Labels
terminal-process
Problems launching processes, managing ptys, exiting, process leaks, etc.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
extensionHost
debug configuration with environment variables specified inenv
orenvFile
.vscode.ShellExecution
task that makes use of the above environment variables.vscode.ShellExecutionOptions
which states that by default the parent process environment is inherited.I created a self-contained workspace with the above steps already prepared. All you have to do is to run the
Run Extension Tests
debug configuration defined inlaunch.json
to observe the problem.I suspect that the issue is that the
vscode.ShellExecution
implementation cachesprocess.env
too early, before the environment variables of the debug configuration were applied.I hope this helps.
Thanks!
The text was updated successfully, but these errors were encountered: