Skip to content

Commit

Permalink
Add the [[count]] value to the variables debug panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-Holbrook committed Jun 14, 2024
1 parent 8987a5f commit d5d932b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/adapters/DebugProtocolAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,20 @@ export class DebugProtocolAdapter {
};
container.children.push(nodeChildren);
}
if (container.elementCount > 0) {
let nodeCount = <EvaluateContainer>{
name: '[[count]]',
evaluateName: 'todo',
type: 'Float',
highLevelType: undefined,
keyType: undefined,
value: container.elementCount.toString(),
elementCount: undefined,
children: []
};
container.children.push(nodeCount);
}

return container;
}
}
Expand Down

0 comments on commit d5d932b

Please sign in to comment.