From f86c0f9a912cf44e160dd79e858c8322ba36e631 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Tue, 16 Jan 2018 11:16:36 +0100 Subject: [PATCH] Remove the handle from the system when handle changes --- src/vs/workbench/api/node/extHostTreeViews.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/workbench/api/node/extHostTreeViews.ts b/src/vs/workbench/api/node/extHostTreeViews.ts index 5a63e004f56..a1807377c88 100644 --- a/src/vs/workbench/api/node/extHostTreeViews.ts +++ b/src/vs/workbench/api/node/extHostTreeViews.ts @@ -254,7 +254,10 @@ class ExtHostTreeView 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 { -- GitLab