Bladeren bron

Adds protection to hopefully address #226

main
Eric Amodio 7 jaren geleden
bovenliggende
commit
8344c33d4a
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      src/currentLineController.ts

+ 1
- 1
src/currentLineController.ts Bestand weergeven

@ -360,7 +360,7 @@ export class CurrentLineController extends Disposable {
private async updateTrailingAnnotation(commit: GitCommit, blameLine: GitCommitLine, editor: TextEditor, line?: number) {
const state = this.getLineAnnotationState();
if (!state.enabled || state.annotationType !== LineAnnotationType.Trailing) return;
if (!state.enabled || state.annotationType !== LineAnnotationType.Trailing || !isTextEditor(editor)) return;
line = line === undefined ? blameLine.line : line;

Laden…
Annuleren
Opslaan