Browse Source

Checks the URI of documents to provide hovers. Closes #1587.

main
Takashi Tamura 3 years ago
committed by Eric Amodio
parent
commit
a46b91fbfa
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/annotations/blameAnnotationProvider.ts

+ 2
- 0
src/annotations/blameAnnotationProvider.ts View File

@ -146,6 +146,8 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase
): Promise<Hover | undefined> {
if (Container.config.hovers.annotations.over !== 'line' && position.character !== 0) return undefined;
if (this.document.uri.toString(true) !== document.uri.toString(true)) return undefined;
const blame = await this.getBlame();
if (blame == null) return undefined;

Loading…
Cancel
Save