瀏覽代碼

Adds more logging for when line blame is skipped

main
Eric Amodio 5 年之前
父節點
當前提交
3ed0ea195f
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      src/annotations/lineAnnotationController.ts

+ 10
- 0
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;
}

Loading…
取消
儲存