-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Multiple account sign in and switching #166176
Comments
@sandy081 this sounds like Profiles |
Can you please try our latest preview feature - Profiles (https://code.visualstudio.com/updates/v1_69#_settings-profiles) and let us know if it suffice your needs. |
@sandy081 I have tried that new setting profile feature. I have expect that I can switch github account by profile. Actually I expect that profile feature are the github account switching I can't find a way to do that so I have create this issue |
I see. Currently profiles are accounts are separate concepts. Environment switching only happens through profiles. Have you tried creating different profiles for your use cases and log in to different accounts in each profile? The only difference you have to make is to use profiles to switch but not accounts. Switching a profile can also switch the account you logged in. CC @isidorn |
@sandy081 Thanks you for your suggestion. I will try that |
@sandy081 thanks for the ping. Let's see if more users find this confusing. I will also make sure to ask users in the user study. |
I have tried creating new setting profile. Then logout and login second github account. When I switch back to default profile the second account still persist When I try to sign out and sign in first account in default profile, then switch profile to second profile, it still is first account I am understood that account and profile are separate concept. So there is 2 way in my mind. One is to have each of these feature can be switching in each project or workspace independently. Second option is to have profile depend on account and so setting sync will sync profile into account separately, and just allow copy or clone profile from another account |
@TylerLeonhardt I remember we discussed that whether we wanna make accounts profile specific? I think this is one such use case where user wants this behaviour. |
@sandy081 I strongly feel that accounts should be global, and not stored in a profile. |
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding, and happy coding! |
@TylerLeonhardt It might be out of scope of setting profiles, but is it out of scope of vscode too? |
@Thaina switching GitHub accounts within VS Code is tracked in the issue I linked. We want to do it, but are blocked by GitHub's current experience. |
@TylerLeonhardt I have made this issue because I think about alternative approach, the active account always be one account. Just that vscode remember a list of token and allow switch account per instance (and remember the default in each project) This would not solve the copilot collision though |
I think there are other signals to tell us what account to use. For settings, extensions, etc we have Profiles. For something like the GitHub Pull Request extension, that uses the git origin (and other things) to determine if the repo is a GitHub repo or a GitHub Enterprise Server repo and asks for the auth of the correct one. Since we don't have multiple GitHub account support, it's hard to design what that will look like when GitHub finally adds support on GitHub.con for multi accounts |
@TylerLeonhardt I don't think it would require github to support multiple account and I don't think github would do that. Just that vscode support multiple sign in account stored in vscode. It did not meant to be active and could use action of every account at once. As I said it still only one active What I imagine is when we sign in to github, vscode just got the oauth token to use in some actions. The key is vscode could store all token and have UI for switching account. In effect it like we sign out and sign in to another account, but skip all the flow In essence it's similar to google account list, or the chrome profile. And just also remember the last account of the project And maybe in the future we could allow each extension or command or task to select or specify account for its action |
I am particularly interested in the option of multiple Microsoft account logins to be able to manage multiple remote access tunnels. There is even a company creating a similar solution to solve this problem as well as others: |
Sometimes it was more convenient to have multiple account; such as, organization account, administration account, company provided account, separate from owned individual account and can manage each project separately or having separate loaded extension and setting profile
For example I myself have my own current account that mainly write C# and unity. But I also have responsibility on devops and server in my company, which mainly use js and some specific tools and access to company repository in full access mode, which I don't want to do that with my own account and I don't want to (openly) add my account to be collaborator of those projects or organization
Also sometimes some company will provide account for employee for managerial purpose
So I wish that I could login with multiple account in vscode without signing out. And when I open an instance of vscode project/folder/workspace I can switch account, and make it become default of that project so when reopen it will auto select account that fit for the project for each instance
The text was updated successfully, but these errors were encountered: