Vscode-gitlens: Hovers only work when saving file after switching to another file

Created on 21 Jan 2020  路  8Comments  路  Source: eamodio/vscode-gitlens

Not sure if this is actually an issue, so I'm opening it as question.

I noticed that the hovers over the lines are not working when I switch to a new file in a different tab. I realized afterwards that they only start to come when I save the file. This does look like a strange behavior. Is this on purpose?

Im running on Ubuntu Mate 18.04 and I could also verify the same behavior in Arch Linux.
vscode: 1.41.1
gitlens: 10.2.0

bug

Most helpful comment

@eamodio for me it happens pretty easily. So if I just do:

  1. Open vscode with more than one files opened;
  2. Hovers will work in the file you are currently;
  3. Switch to another tab/file;
  4. Hovers won't work until you save the file.

All 8 comments

I have the same behavior, but with existing files. It can be few cases:

  • file is changed but but didn't save
  • just opened file
  • other cases when conditions weren't memorized

windows 10

@nunojsa @pixmaster Can you provide some step-by-step instructions for how to reproduce this? Thanks!

Unfortunately, I couldn't find why it's happening. In some files it just don't work. After file save it works again.

@eamodio for me it happens pretty easily. So if I just do:

  1. Open vscode with more than one files opened;
  2. Hovers will work in the file you are currently;
  3. Switch to another tab/file;
  4. Hovers won't work until you save the file.

@nunojsa @terski Can you try this upcoming version of GitLens?

gitlens-10.3.0-alpha.vsix.zip

Rename the file to remove the .zip and then install it

image

@eamodio I'm running it now. Appears to be fixed. 馃憤 Thank you! 馃檹

Hey there, I've been having the same problem lately, blame annotations show up very inconsistently. For now adding "gitlens.hovers.enabled": true, to the settings file _seems_ to fix it, emphasis on seems. It could just be chance.

Edit: It just failed, so forget all I said :P

Fixed in GitLens 11

Was this page helpful?
0 / 5 - 0 ratings