-
Select Topic AreaQuestion BodyI have two GitHub accounts. There is my personal GitHub account which is what I use for virtually all day to day tasks, and there is my enterprise GitHub account which has access to Copilot. If I were to initially launch VSCode I can authenticate the extensions in a careful order such that the Copilot extension uses my enterprise account, and the other extensions & setting sync use my personal account. However, on subsequent launches of VSCode it appears that only authentication for my personal account is used and the Copilot extension fails. I then have to sign out of GitHub from VSCode and repeat the sign in process again, being careful of the order again. Is there some way for me to explicitly tell the Copilot extension to use a particular GitHub account, separate from my other extensions? |
Beta Was this translation helpful? Give feedback.
Replies: 81 comments 121 replies
-
Hi @bbatsche , Thanks for highlighting this - I've shared this feedback with my team internally. |
Beta Was this translation helpful? Give feedback.
-
can confirm same issue. any updates on this? |
Beta Was this translation helpful? Give feedback.
-
Just chiming in to note that this used to work fine in the past, only ran into the issue after having to reinstall VSCode |
Beta Was this translation helpful? Give feedback.
-
Hi, Is this issue resolved? |
Beta Was this translation helpful? Give feedback.
-
Login with your enterprise GitHub account and try again. And also check your GitHub configurations. |
Beta Was this translation helpful? Give feedback.
-
Found a good solution for this issue! Click on the accounts avatar at the left-bottom of the vscode you should see the account without copilot permissions in here, so click on it and select "Manage Trusted Extensions" And there, deselect github copilot, close VSCode, open up again and now when prompted by copilot to sign in with your account you add your account with permissions, so VSCode will keep using your main git account and will use the other one only for copilot! :) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Just wanted to note that if you can't see the gear and account icons, go to |
Beta Was this translation helpful? Give feedback.
-
Had the same problem. |
Beta Was this translation helpful? Give feedback.
-
Same problema here, I tried using the vscode profiles option, but it also doesn't allow multiple copilot accounts... |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, have a personal account that I use for literally everything and an Enterprise account thats sole existence is to have the copilot licence. This issue makes using copilot basically impossible unless I want the hassle of having to log into each account every time I restart vscode :( |
Beta Was this translation helpful? Give feedback.
-
Like someone else said, the only solution appears to be using one github account and one microsoft account. |
Beta Was this translation helpful? Give feedback.
-
This sounds like a prime example for a “multi account/per extension account” extension for the vs code marketplace. |
Beta Was this translation helpful? Give feedback.
-
This problem is still ongoing |
Beta Was this translation helpful? Give feedback.
-
We need a way to configure the CoPilot extension to use a different GitHub account than the account used by VS Code for other things such as sync'ing. They're not going to be the same. I use my personal account for sync'ing, but I want to use my corporate enterprise account for CoPilot because the company I work for pays for it. Currently, I cannot use CoPilot VSCode for this reason, although this works fine in Visual Studio. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
Goodness, why can't such a basic function be supported? The user experience is so terrible. |
Beta Was this translation helpful? Give feedback.
-
Ok, I just cancelled my copilot subscription, not being able to use other extensions due to this limit makes it not worth it. I'd gladly subscribe again when this feature become available |
Beta Was this translation helpful? Give feedback.
-
Still not fixed, wake up Github! |
Beta Was this translation helpful? Give feedback.
-
Still not fixed. Is this acceptable for paying customers? @ashtom |
Beta Was this translation helpful? Give feedback.
-
The problem is still not fixed. Any update on this? it's frustrating to keep switching profiles, logging out and logging in hoping that copilot will work this time. Please fix this as soon as possible. Thanks! |
Beta Was this translation helpful? Give feedback.
-
This still does not work, I have a paid subscription to Copilot that I can't get to work in VSCode, after numerous attempts and different approaches. It works with Visual Studio however. There is some weird interaction with Github desktop which seems to not completely log out of the account used for commits, and will not let me login as the account with the Copilot subscription. |
Beta Was this translation helpful? Give feedback.
-
Just for awareness, VS Code Dev made this comment on this issue. TLDR: They confirm that VS Code officially only supports 1 account but intend to support multi accounts. But when and how is up in the air. Recommended workaround is using VS Code + VS Code insider side by side for your multi account usage. |
Beta Was this translation helpful? Give feedback.
-
I did not investigate if any of this is actually possible as a plugin, but since this problem has been going on for over year without a solution in sight, i have been thinking on formally defining the problem and how a solution for it would need to look like. Please note this is my personal take on what the cause of the problem is, it may not reflect what others are experiencing. Feel free to discuss and add to this, please stay nice. It's just a wild idea. Note: Example: Premise: Problem: Solution: Requirements:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
That risk exists always, you don't need multiple accounts for this. |
Beta Was this translation helpful? Give feedback.
-
if your problem is logging in to copilot on one github account and having to commit by other github account (business account) you could:
this way, you use copilot on vscode with one account and commit/push via terminal with another acount this solved it for me |
Beta Was this translation helpful? Give feedback.
-
So it seems as though they have just made this worse... Was using the terminal to logon to git to push/pull and the extention to use copilot, but now it will not let me push or pull in vs code without being logged into the correct github account... I can get around it by logging in every single time, but it is requiring me to logon properly through the extention... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Looks like |
Beta Was this translation helpful? Give feedback.
We wanted to update you on the progress of this issue.
The work to enable multiple GitHub account login support in Copilot and VSCode has been completed, and the issue is now resolved. However, given the limited time for thorough testing, we’ve opted not to enable it by default in the upcoming Stable release next week.
We’ll continue tracking the rollout of this feature in a follow-up issue, #229421.
In the meantime, after the release of version 1.94, you can manually enable this feature by adding the following setting to your configuration:
We appreciate your patience and look forward to your feedback as you test this functionality!