GitLens extension disappeared

GitVisual Studio-Code

Git Problem Overview


I'm work on Linux Mint: Screenshot of mint version
I have latest version of Visual Studio code: Screenshot of vs code version
After new reload of OS extension GitLens disappeared: Screenshot of problem
I can't see any information in my source code, that provide this extension. Reinstallation this extension or vs code didn't apply any effect. How can i fix it?

Git Solutions


Solution 1 - Git

For me the problem was for VS Code 1.51.1 and GitLens 11 they have made the Source Control Layout as default and requires the selection of view in order to make it work as before i.e., in the VS Code sidebar (using Mac OS Catalina 10.15.2).

After update:

  1. Press cmd+shift+p (ctrl+shift+p on Windows) and type > Gitlens: Show Welcome View and hit enter. This will bring back the GitLens on sidebar. Then click on GitLens icon in sidebar and you will be shown a welcome page similar to screenshot below:

enter image description here

  1. Click on Welcome (Quick Setup), this will open the below screen:

enter image description here

  1. Scroll to the bottom and then select the view named GITLENS LAYOUT among the two options given:

enter image description here

  1. Now click on Close button in GitLens menu that is opened next to VS Code sidebar:

enter image description here

And your GitLens is back!

Solution 2 - Git

Update from eamodio/vscode-gitlens issue 516:

> Antivirus deleted one of the extension's files. To fix issue on Windows:

> - Remove GitLens extension from VSCode

  • Reload VSCode
  • Close all instances of VSCode
  • Delete %userprofile%\.vscode\extensions\eamodio.gitlens-8.5.6
  • Open VSCode
  • Reinstall GitLens extension

For Mac users:

> - remove the extension

  • reload vscode
  • go to setting.json by pressing cmd+shift+p > open user settings
  • delete all entries regarding the extension
  • close vs code
  • open vscode
  • install the extension

Original answer:

Do a right click in the plugin icons column, and see if GitLens is hidden or not:

GitLens hidden

By selecting GitLens, you would find back your GitLens icon:

GitLens is back

The OP anderson confirms in the comments

> In issue 516 on Github problem was solved.
This problem was in large count of files, that GitLens extension could not read.
Exclude this path from project's directory solved my problem.

Solution 3 - Git

This problem was related to python virtual enviroment: extension stoped indexing a lot of files of virtual enviroment. Solvation was easy: exclude virtual enviroment from project folder through moving it outside or exclude through settings

Solution 4 - Git

I had a problem with this but found a solution. Just right-click on your visual studio's sidebar and click source control to check it.

Solution 5 - Git

I just selected source control on vscode's sidebar and then clicked on "start repository". This worked for me on windows.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionandersonView Question on Stackoverflow
Solution 1 - Gitpatrick.1729View Answer on Stackoverflow
Solution 2 - GitVonCView Answer on Stackoverflow
Solution 3 - GitandersonView Answer on Stackoverflow
Solution 4 - GitRhinolamerView Answer on Stackoverflow
Solution 5 - GitJoão IgnácioView Answer on Stackoverflow