-
Notifications
You must be signed in to change notification settings - Fork 588
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
Uses the wrong account when signed in with multiple GitHub.com accounts #5159
Comments
It's not ideal, but does this work if you sign out of your personal account? |
It probably would but if I did that, I wouldn't be able to use Settings Sync also relies on this GitHub sign in feature, right? |
I think you can also use a Microsoft account for settings sync, but once again, this isn't ideal. I'm going to take a look at this in September and I expect I'll have a fix for you then. |
Just ran into this again myself, patiently waiting :) |
I took a look at this and started implementing it, only to realize that first microsoft/vscode#127967 needs to be done. Once the upstream issue is addressed I'll come back to this bug! |
Only 1 account at a time is supported at the moment. You'll need to sign out of your first account before signing in with a second one. @TylerLeonhardt FYI for the error. |
Thanks @alexr00 for the info. Can we make it support multiple accounts? |
@TylerLeonhardt is working on the first steps of getting multiple account support going. |
Any update on this? |
v0.70.0
1.82.0-insider
Steps to Reproduce:
Have a remote like this (in my case, it's accessible only behind VPN, which I'm already on)
I'm signed into VSCode with both my personal & work github accounts (they're both for
github.com
:Go to Github Pull Requests extension pane, observe error:
Screenshot:
Developer logs show it's failing to find the repo:
In the meanwhile, commands like
git fetch
orgh pr create
work fine with this remote.I'm suspecting the extension is using my personal GitHub.com account on the work repo. Is there a way for the extension to hint/guess which account to use (or configure explicitly)?
Some other configs if relevant at all:
The text was updated successfully, but these errors were encountered: