Skip to content

Commit

Permalink
use weakmap
Browse files Browse the repository at this point in the history
Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
  • Loading branch information
amunger and DonJayamanne authored Aug 16, 2022
1 parent 56ee41b commit fb5af5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notebooks/controllers/vscodeNotebookController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class VSCodeNotebookController implements Disposable, IVSCodeNotebookCont
selected: boolean;
notebook: NotebookDocument;
}>();
private pendingCellAdditions = new Map<NotebookDocument, Promise<void>>();
private pendingCellAdditions = new WeakMap<NotebookDocument, Promise<void>>();
private readonly _onDidDispose = new EventEmitter<void>();
private readonly disposables: IDisposable[] = [];
private notebookKernels = new WeakMap<NotebookDocument, IKernel>();
Expand Down

0 comments on commit fb5af5c

Please sign in to comment.