Ver código fonte

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

main
Takashi Tamura 3 anos atrás
committed by Eric Amodio
pai
commit
a46b91fbfa
1 arquivos alterados com 2 adições e 0 exclusões
  1. +2
    -0
      src/annotations/blameAnnotationProvider.ts

+ 2
- 0
src/annotations/blameAnnotationProvider.ts Ver arquivo

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

Carregando…
Cancelar
Salvar