浏览代码

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;

正在加载...
取消
保存