Vscode-gitlens: How do I stop gitlens from asking me to sign in?

Created on 3 Dec 2020  路  5Comments  路  Source: eamodio/vscode-gitlens

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?

question

Most helpful comment

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

All 5 comments

@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.

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

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

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

Closing this as a duplicate of #1208

Was this page helpful?
0 / 5 - 0 ratings