瀏覽代碼

Allows line blame annotations on gitlens-git schemes

main
Eric Amodio 7 年之前
父節點
當前提交
796730c22f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/blameActiveLineController.ts

+ 1
- 1
src/blameActiveLineController.ts 查看文件

@ -121,7 +121,7 @@ export default class BlameActiveLineController extends Disposable {
const previousEditor = this._editor;
previousEditor && previousEditor.setDecorations(activeLineDecoration, []);
if (!e || !e.document || e.document.isUntitled ||
if (!e || !e.document || (e.document.isUntitled && e.document.uri.scheme !== DocumentSchemes.Git) ||
(e.document.uri.scheme !== DocumentSchemes.File && e.document.uri.scheme !== DocumentSchemes.Git) ||
(e.viewColumn === undefined && !this.git.hasGitUriForFile(e))) {
this.clear(e);

Loading…
取消
儲存