瀏覽代碼

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

main
Takashi Tamura 3 年之前
committed by Eric Amodio
父節點
當前提交
a46b91fbfa
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/annotations/blameAnnotationProvider.ts

+ 2
- 0
src/annotations/blameAnnotationProvider.ts 查看文件

@ -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…
取消
儲存