Browse Source

Adds more debug logging

main
Eric Amodio 4 years ago
parent
commit
c08bbc8b44
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/annotations/lineAnnotationController.ts

+ 4
- 1
src/annotations/lineAnnotationController.ts View File

@ -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…
Cancel
Save