Browse Source

Fixes #274 - TextEditor is closed/disposed

main
Eric Amodio 6 years ago
parent
commit
e041383cd8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/currentLineController.ts

+ 1
- 0
src/currentLineController.ts View File

@ -364,6 +364,7 @@ export class CurrentLineController extends Disposable {
private clearAnnotations(editor: TextEditor | undefined) {
if (editor === undefined) return;
if ((editor as any)._disposed === true) return;
editor.setDecorations(annotationDecoration, []);
}

Loading…
Cancel
Save