Skip to content

Commit e16d9ef

Browse files
authored
re microsoft#146009. dispose CollapsedCodeCellExecutionIcon
1 parent 4e159b9 commit e16d9ef

File tree

1 file changed

+1
-1
lines changed
  • src/vs/workbench/contrib/notebook/browser/view/cellParts

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class CodeCell extends Disposable {
130130
this._register(toDisposable(() => {
131131
executionItemElement.parentElement?.removeChild(executionItemElement);
132132
}));
133-
this._collapsedExecutionIcon = this.instantiationService.createInstance(CollapsedCodeCellExecutionIcon, this.notebookEditor, this.viewCell, executionItemElement);
133+
this._collapsedExecutionIcon = this._register(this.instantiationService.createInstance(CollapsedCodeCellExecutionIcon, this.notebookEditor, this.viewCell, executionItemElement));
134134
this.updateForCollapseState();
135135

136136
this._register(Event.runAndSubscribe(viewCell.onDidChangeOutputs, this.updateForOutputs.bind(this)));

0 commit comments

Comments
 (0)