From 5e56778901d5d2576a2cdf653504d2b2a31bfb28 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 22 Aug 2022 16:46:02 -0400 Subject: [PATCH] Fixes error in timeline for unsupported schemes --- src/plus/webviews/timeline/timelineWebviewView.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plus/webviews/timeline/timelineWebviewView.ts b/src/plus/webviews/timeline/timelineWebviewView.ts index 893b97e..b4f3ec5 100644 --- a/src/plus/webviews/timeline/timelineWebviewView.ts +++ b/src/plus/webviews/timeline/timelineWebviewView.ts @@ -144,6 +144,7 @@ export class TimelineWebviewView extends WebviewViewBase { @debug({ args: false }) private onActiveEditorChanged(editor: TextEditor | undefined) { + if (editor == null || !this.container.git.isTrackable(editor.document.uri)) return; if (!this.updatePendingEditor(editor)) return; this.updateState();