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

how to relogin or change github account of Azure Data Studio #24173

Closed
Shixin-Tang opened this issue Aug 19, 2023 · 8 comments
Closed

how to relogin or change github account of Azure Data Studio #24173

Shixin-Tang opened this issue Aug 19, 2023 · 8 comments
Labels
Area - Copilot Area - Shell Enhancement Request for new features or functionality Triage: Done

Comments

@Shixin-Tang
Copy link

Type: Feature Request

I have installed Azure Data Studio on my Macbook pro. And I installed GitHub Copilot Extension. The first time I login my github account successfully. But I need to change to another github account which has copilot subscription. But there is no feature to log out or sign out the github account and relogin with another github account.

Azure Data Studio version: azuredatastudio 1.45.1 (Universal) (88c21b1, 2023-08-03T00:42:36.656Z)
OS version: Darwin x64 21.6.0
Restricted Mode: No
Preview Features: Enabled
Modes:

@phnogues
Copy link

I found a solution (not the best one)
Go to AppData\Roaming\azuredatastudio\User\globalStorage\state.vscdb replace your github login by the new one
Be careful, you may lost some saved password.

I hope MS will add the option to manage GitHub account as it is in VS Code

@gauravkumar796
Copy link

Hi, I can't even login with GitHub account, everytime it opens up a window in browser to sign-in with Azure account.

@cheenamalhotra
Copy link
Member

We could consider supporting commands for GitHub Copilot: Sign In/Sign Out - @lewis-sanchez ?

@peter-curiousit
Copy link

To elaborate on @phnogues comment, I was able to remove the GitHub creds from my ADS with:

sqlite3 state.vscdb "delete from ItemTable where key like '%github%';"

The above command needs to be run in your globalStorage folder:

Linux:

~/.config/azuredatastudio/User/globalStorage

Windows:

<user>\AppData\Roaming\azuredatastudio\User\globalStorage

Requires sqlite3 CLI to be installed (e.g. sudo apt install sqlite3)

@avinewman
Copy link

avinewman commented Dec 8, 2023

@phnogues Deleting the file AppData\Roaming\azuredatastudio\User\globalStorage\state.vscdb worked for me. This logged my github copilot extension out of github and I was able to try again.

@kisantia
Copy link
Contributor

kisantia commented Feb 9, 2024

@lewis-sanchez should this be supported now that #25014 was merged?

@lewis-sanchez
Copy link
Contributor

@kisantia, yeah, this should be supported. PR #25014 allowed users to log out. The Copilot extension would then prompt the user to sign back in, but in some cases the user would need to close and reopen Azure Data Studio for the extension to trigger the prompt to sign back in with the same or different account.

@kisantia
Copy link
Contributor

kisantia commented Feb 9, 2024

Closing this issue since it is now supported in insiders and will be available in the next release.

@kisantia kisantia closed this as completed Feb 9, 2024
@kisantia kisantia added Enhancement Request for new features or functionality and removed Bug labels Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - Copilot Area - Shell Enhancement Request for new features or functionality Triage: Done
Projects
None yet
Development

No branches or pull requests

8 participants