Skip to content

Commit 3ed0ea1

Browse files
committed
Adds more logging for when line blame is skipped
1 parent 3be19b2 commit 3ed0ea1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/annotations/lineAnnotationController.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,22 @@ export class LineAnnotationController implements Disposable {
153153

154154
const cfg = Container.config.currentLine;
155155
if (this.suspended) {
156+
if (cc) {
157+
cc.exitDetails = ` ${GlyphChars.Dot} Skipped because suspended`;
158+
}
159+
156160
this.clear(editor);
157161
return;
158162
}
159163

160164
const trackedDocument = await Container.tracker.getOrAdd(editor.document);
161165
if (!trackedDocument.isBlameable && this.suspended) {
166+
if (cc) {
167+
cc.exitDetails = ` ${GlyphChars.Dot} Skipped because ${
168+
this.suspended ? 'suspended' : `document(${trackedDocument.uri.toString(true)}) is not blameable`
169+
}`;
170+
}
171+
162172
this.clear(editor);
163173
return;
164174
}

0 commit comments

Comments
 (0)