提交 cbf61645 编写于 作者: R Rob Lourens

Maybe fix notebook listener leak warnings

fix #102177
上级 25adee24
......@@ -451,15 +451,13 @@ export class MarkdownCellRenderer extends AbstractCellRenderer implements IListR
templateData.disposables.clear();
}
disposeElement(element: ICellViewModel, index: number, templateData: MarkdownCellRenderTemplate, height: number | undefined): void {
if (height) {
templateData.elementDisposables.clear();
element.getCellDecorations().forEach(e => {
if (e.className) {
templateData.container.classList.remove(e.className);
}
});
}
disposeElement(element: ICellViewModel, _index: number, templateData: MarkdownCellRenderTemplate): void {
templateData.elementDisposables.clear();
element.getCellDecorations().forEach(e => {
if (e.className) {
templateData.container.classList.remove(e.className);
}
});
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册