提交 6ec24351 编写于 作者: J Joao Moreno

properly dispose tree items

related to #46565
上级 4a33a791
......@@ -1675,6 +1675,11 @@ export class TreeView extends HeightMap {
}
this.domNode = null;
if (this.items) {
Object.keys(this.items).forEach(key => this.items[key].removeFromDOM());
this.items = null;
}
if (this.context.cache) {
this.context.cache.dispose();
this.context.cache = null;
......
......@@ -226,6 +226,7 @@ export class FileRenderer implements IRenderer {
}
public disposeTemplate(tree: ITree, templateId: string, templateData: IFileTemplateData): void {
templateData.elementDisposable.dispose();
templateData.label.dispose();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册