Remove the handle from the system when handle changes

This commit is contained in:
Sandeep Somavarapu
2018-01-16 11:16:36 +01:00
parent c66517cf0d
commit f86c0f9a91

View File

@@ -254,7 +254,10 @@ class ExtHostTreeView<T> extends Disposable {
// Update parent node
if (node) {
if (node.handle !== handle) {
// Remove the old handle from the system
this.elements.delete(node.handle);
childrenHandles[childrenHandles.indexOf(node.handle)] = handle;
this.clearChildren(element);
}
} else {