From e675916b1275c80e479b1a1ffb922814505abd8a Mon Sep 17 00:00:00 2001 From: ecmel Date: Sat, 17 Aug 2024 16:44:03 +0300 Subject: [PATCH] fixes collapsible state --- src/services/kdbTreeProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/kdbTreeProvider.ts b/src/services/kdbTreeProvider.ts index 15638986..8bb9cf85 100644 --- a/src/services/kdbTreeProvider.ts +++ b/src/services/kdbTreeProvider.ts @@ -819,9 +819,11 @@ export class QServerNode extends TreeItem { export class LabelNode extends TreeItem { readonly children: TreeItem[] = []; + static id = 0; constructor(public readonly source: Labels) { super(source.name); + this.id = "LabelNode" + LabelNode.id++; this.collapsibleState = this.getCollapsibleState(source.name); this.contextValue = "label"; }