mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
timeline: fix memory leak when toggling pane visibility (#304668)
* timeline: dispose previous visibility subscriptions before recreating * retrigger CI --------- Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
This commit is contained in:
@@ -883,6 +883,7 @@ export class TimelinePane extends ViewPane {
|
||||
override setVisible(visible: boolean): void {
|
||||
if (visible) {
|
||||
this.extensionService.activateByEvent('onView:timeline');
|
||||
this.visibilityDisposables?.dispose();
|
||||
this.visibilityDisposables = new DisposableStore();
|
||||
|
||||
this.editorService.onDidActiveEditorChange(this.onActiveEditorChanged, this, this.visibilityDisposables);
|
||||
|
||||
Reference in New Issue
Block a user