Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLens in VS Code: no inline blame info anymore

After several updates, and installing other extensions like Error Lens, I noticed that GitLens stopped working. There is no blame information displayed at the line ends anymore. Error Lens continues working. I'm not using the plus features and are not logged in to a GitLens+ account. According to its documentation, the inline blame is not a plus feature and should work without subscription. When installing Code on another computer and synchronizing the settings, GitLens worked for a short while and then the inline blame messages disappeared.

Is this a known issue? What can be the reason?

Edit: GitLens inline blame works in the diff editor, opened from the source control view. The blame is also displayed in the status bar, and "Toggle Line Blame" also works as expected.However, neither of them works when opening a file normally. No status bar message, no inline blame, toggle line blame has no effect. It's enabled in the configuration. Disabling all other extensions and leaving only GitLens enabled has no effect, either.

like image 352
vjalle Avatar asked Sep 11 '25 11:09

vjalle


2 Answers

I've been struggling with the same issue, for some time, but finally found my solution.

Hope this helps.

you have to exit ZEN mode

Like this, find zen at the bottom of the vscode status bar

enter image description here

then Change to Review Mode

enter image description here

like image 134
Jonathan Sanchez Avatar answered Sep 13 '25 01:09

Jonathan Sanchez


Okay figured the root cause. It's connected to virtual drives assigned to folders with the subst command.

  • Open the workspace through the virtual drive and then open a file for editing from Explorer or ctrl-p: no blame info.
  • Open the workspace through the virtual drive, and then open a file from the Source Control view by right-click / Open File: inline blame works
  • Open the workspace through the original long path (no virtual drive) and then open files in any way: inline blame works

It seems to be an issue in the recent versions of the extensions. I'm going to create a ticket for it.

like image 41
vjalle Avatar answered Sep 13 '25 01:09

vjalle