mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Remove the handle from the system when handle changes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user