Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: apply extension environmentVariableCollection's to debug targets in debug console (internalConsole) #114818

Closed
bersbersbers opened this issue Jan 23, 2021 · 3 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality

Comments

@bersbersbers
Copy link

bersbersbers commented Jan 23, 2021

I have noticed that debug targets using "console": "integratedTerminal" and "console": "internalConsole" see different environment variables. In particular, if extensions use an environmentVariableCollection (https://code.visualstudio.com/api/references/vscode-api#ExtensionContext), this is applied to the former, but not the latter. See also joelspadin/vscode-remote-x11#41

Related from this project:

After discussion we think a good solution would be if the debug adapter could get access to the actual shell environment that we resolve right on startup and then use that environment when spawning the debug target. This would ensure that the target sees the exact same environment that it would see if it was spawned from the terminal.

#38428 (comment)

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jan 24, 2021
@weinand weinand added the feature-request Request for new features or functionality label Oct 11, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants
@weinand @bersbersbers and others