瀏覽代碼

Adds more debug logging

main
Eric Amodio 4 年之前
父節點
當前提交
c08bbc8b44
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/annotations/lineAnnotationController.ts

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

@ -237,7 +237,10 @@ export class LineAnnotationController implements Disposable {
const commitLines = [
...Iterables.filterMap<number, [number, GitBlameCommit]>(lines, l => {
const state = Container.lineTracker.getState(l);
if (state?.commit == null) return undefined;
if (state?.commit == null) {
Logger.debug(cc, `Line ${l} returned no commit`);
return undefined;
}
return [l, state.commit];
})

Loading…
取消
儲存