From 3ed0ea195faf6f0a3d1a2e0efd4f07dbef13b81e Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 23 Sep 2019 22:32:13 -0400 Subject: [PATCH] Adds more logging for when line blame is skipped --- src/annotations/lineAnnotationController.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/annotations/lineAnnotationController.ts b/src/annotations/lineAnnotationController.ts index a277b68..14a7265 100644 --- a/src/annotations/lineAnnotationController.ts +++ b/src/annotations/lineAnnotationController.ts @@ -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; }