From 838348c59a222a1edbb7a90b206721c1bd947fae Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 25 Mar 2020 16:40:38 -0400 Subject: [PATCH] Ensures visible state is updated before updating --- src/vs/workbench/contrib/timeline/browser/timelinePane.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/timeline/browser/timelinePane.ts b/src/vs/workbench/contrib/timeline/browser/timelinePane.ts index dd95ebd9a09..a34cc345272 100644 --- a/src/vs/workbench/contrib/timeline/browser/timelinePane.ts +++ b/src/vs/workbench/contrib/timeline/browser/timelinePane.ts @@ -776,12 +776,14 @@ export class TimelinePane extends ViewPane { // Refresh the view on focus to update the relative timestamps this.onDidFocus(() => this.refreshDebounced(), this, this.visibilityDisposables); + super.setVisible(visible); + this.onActiveEditorChanged(); } else { this.visibilityDisposables?.dispose(); - } - super.setVisible(visible); + super.setVisible(visible); + } } protected layoutBody(height: number, width: number): void { -- GitLab