debt - fix some leaks found by copilot (#293731)

This commit is contained in:
Benjamin Pasero
2026-02-09 07:13:06 +01:00
committed by GitHub
parent b45c33657e
commit 45a35b8049
109 changed files with 236 additions and 185 deletions

View File

@@ -177,7 +177,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
private readonly _instanceId: string;
public readonly id: string;
private _foldingRanges: FoldingRegions | null = null;
private _onDidFoldingStateChanged = new Emitter<void>();
private _onDidFoldingStateChanged = this._register(new Emitter<void>());
readonly onDidFoldingStateChanged: Event<void> = this._onDidFoldingStateChanged.event;
private _hiddenRanges: ICellRange[] = [];
private _focused: boolean = true;