-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Preserve per-window environment variables between workspace changes #108571
Comments
@bpasero Opening a second window from an (external) terminal passes the environment variables from that terminal to the second window (which is good). These environment variables are then lost when that window opens another folder/URI and the environment variables from the first window are used (causing the unexpected behavior here). Simplified steps (on Mac):
|
Slightly related: #15452 |
Logic is here and I hope it does not break anything. Idea is that we preserve the windows ff1887b#diff-ce055d098d503f8b3309d514fd97e4a84da4515e21ee102618bbb2097087ab2bR687-R689 |
This bug has been fixed in to the latest release of VS Code Insiders! @vkk-steigend, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text Happy Coding! |
/verified |
Steps to Reproduce:
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_ed25519_key1
code .
ssh-add -l
in VS Code terminal (shows the identity of key1) (:+1: )ssh-add -l
in VS Code terminal (shows the identity of key1) (:+1: )eval $(ssh-agent -s)
ssh-add ~/.ssh/id_ed25519_key2
code .
ssh-add -l
in VS Code terminal (shows the identity of key2) (:+1: )ssh-add -l
in VS Code terminal (shows the identity of key1) (:-1: )VS Code somehow only forwards the first ssh-agent to remote container eventhough it has the correct ssh-agent forwarded locally. Am I missing any configuration? Can this be fixed with any settings in devcontainer.json?
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: N/A
The text was updated successfully, but these errors were encountered: