浏览代码

Tuned blame line highlighting

main
Alexey Vasyukov 7 年前
committed by Eric Amodio
父节点
当前提交
838fcbf0a1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/annotations/blameAnnotationProvider.ts

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

@ -57,7 +57,7 @@ export abstract class BlameAnnotationProviderBase extends AnnotationProviderBase
}
const highlightDecorationRanges = Arrays.filterMap(blame.lines,
l => l.sha !== sha ? this.editor.document.validateRange(new Range(l.line, 0, l.line, 1000000)) : undefined);
l => l.sha === sha ? this.editor.document.validateRange(new Range(l.line, 0, l.line, 1000000)) : undefined);
this.editor.setDecorations(this.highlightDecoration, highlightDecorationRanges);
}

正在加载...
取消
保存