Skip to content

Commit 8888ed6

Browse files
committed
bunch of memory leaks. dispose of everything.
1 parent f4c03dd commit 8888ed6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ export class NotebookCellOutline implements IOutline<OutlineEntry> {
314314
this._onDidChange.dispose();
315315
this._dispoables.dispose();
316316
this._entriesDisposables.dispose();
317+
this._outlineProvider?.dispose();
317318
}
318319
}
319320

src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
324324

325325
this._register(this.instantiationService.createInstance(NotebookEditorContextKeys, this));
326326

327-
this._notebookOutline = this.instantiationService.createInstance(NotebookCellOutlineProvider, this, OutlineTarget.QuickPick);
327+
this._notebookOutline = this._register(this.instantiationService.createInstance(NotebookCellOutlineProvider, this, OutlineTarget.QuickPick));
328328

329329
this._register(notebookKernelService.onDidChangeSelectedNotebooks(e => {
330330
if (isEqual(e.notebook, this.viewModel?.uri)) {

0 commit comments

Comments
 (0)