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 do I stop gitlens from asking me to sign in? #1233

Closed
54696d21 opened this issue Dec 3, 2020 · 6 comments
Closed

How do I stop gitlens from asking me to sign in? #1233

54696d21 opened this issue Dec 3, 2020 · 6 comments
Labels

Comments

@54696d21
Copy link

54696d21 commented Dec 3, 2020

It often asks me (every 2nd or 3rd time I start VS Code) if I want to sign in with Github. How do I turn this off?

@mrboring
Copy link

mrboring commented Dec 6, 2020

@54696d21 The following worked for me:

  • Go into the VS Code settings (Ctrl+,)
  • Search for github
  • In the left hand menu that appears in the search results, click GitLens
  • Untick all settings that have Requires a connection to a supported remote service (e.g. GitHub)
  • Ctrl+Shift+P - Developer: Reload Window

It would be nice if there was a single setting to disable this.

@54696d21
Copy link
Author

54696d21 commented Dec 6, 2020

so pasting this block into the settings.json should achieve it

  "gitlens.currentLine.pullRequests.enabled": false,
  "gitlens.hovers.autolinks.enhanced": false,
  "gitlens.hovers.pullRequests.enabled": false,
  "gitlens.statusBar.pullRequests.enabled": false,
  "gitlens.views.branches.pullRequests.enabled": false,
  "gitlens.views.branches.pullRequests.showForBranches": false,
  "gitlens.views.branches.pullRequests.showForCommits": false,
  "gitlens.views.commits.pullRequests.enabled": false,
  "gitlens.views.commits.pullRequests.showForBranches": false,
  "gitlens.views.commits.pullRequests.showForCommits": false,
  "gitlens.views.contributors.pullRequests.enabled": false,
  "gitlens.views.contributors.pullRequests.showForCommits": false,
  "gitlens.views.searchAndCompare.pullRequests.showForCommits": false,
  "gitlens.views.searchAndCompare.pullRequests.enabled": false,
  "gitlens.views.repositories.pullRequests.showForCommits": false,
  "gitlens.views.repositories.pullRequests.showForBranches": false,
  "gitlens.views.repositories.pullRequests.enabled": false,
  "gitlens.views.remotes.pullRequests.showForCommits": false,
  "gitlens.views.remotes.pullRequests.showForBranches": false,
  "gitlens.views.remotes.pullRequests.enabled": false

@mrboring
Copy link

mrboring commented Dec 6, 2020

Yes. Thats what I have in my settings.json. Only did it a couple of hours ago, but seems OK at the moment.

@eamodio
Copy link
Member

eamodio commented Dec 7, 2020

An easy opt-out is coming very soon, or you can use the Insiders edition today. Sorry for the inconvenience :sad:

@eamodio
Copy link
Member

eamodio commented Dec 7, 2020

Closing this as a duplicate of #1208

@eamodio eamodio closed this as completed Dec 7, 2020
@github-actions
Copy link

github-actions bot commented Jan 7, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants