From d5d932b51712ec89798b1ceef53454f3c0e6d48b Mon Sep 17 00:00:00 2001 From: Christian Holbrook Date: Fri, 14 Jun 2024 16:31:44 -0600 Subject: [PATCH] Add the [[count]] value to the variables debug panel --- src/adapters/DebugProtocolAdapter.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/adapters/DebugProtocolAdapter.ts b/src/adapters/DebugProtocolAdapter.ts index b27a8a6..792986e 100644 --- a/src/adapters/DebugProtocolAdapter.ts +++ b/src/adapters/DebugProtocolAdapter.ts @@ -610,6 +610,20 @@ export class DebugProtocolAdapter { }; container.children.push(nodeChildren); } + if (container.elementCount > 0) { + let nodeCount = { + name: '[[count]]', + evaluateName: 'todo', + type: 'Float', + highLevelType: undefined, + keyType: undefined, + value: container.elementCount.toString(), + elementCount: undefined, + children: [] + }; + container.children.push(nodeCount); + } + return container; } }