Browse Source

Adds more logging for when line blame is skipped

main
Eric Amodio 5 years ago
parent
commit
3ed0ea195f
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/annotations/lineAnnotationController.ts

+ 10
- 0
src/annotations/lineAnnotationController.ts View File

@ -153,12 +153,22 @@ export class LineAnnotationController implements Disposable {
const cfg = Container.config.currentLine;
if (this.suspended) {
if (cc) {
cc.exitDetails = ` ${GlyphChars.Dot} Skipped because suspended`;
}
this.clear(editor);
return;
}
const trackedDocument = await Container.tracker.getOrAdd(editor.document);
if (!trackedDocument.isBlameable && this.suspended) {
if (cc) {
cc.exitDetails = ` ${GlyphChars.Dot} Skipped because ${
this.suspended ? 'suspended' : `document(${trackedDocument.uri.toString(true)}) is not blameable`
}`;
}
this.clear(editor);
return;
}

Loading…
Cancel
Save