Przeglądaj źródła

Allows line blame annotations on gitlens-git schemes

main
Eric Amodio 7 lat temu
rodzic
commit
796730c22f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/blameActiveLineController.ts

+ 1
- 1
src/blameActiveLineController.ts Wyświetl plik

@ -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);

Ładowanie…
Anuluj
Zapisz