Skip to content

Commit

Permalink
Add $contents virtual variable to roRegistrySection (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron authored Feb 21, 2025
2 parents d167d80 + 9e495e0 commit 6f5449a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/adapters/customVariables/ifRegistrySection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@ export function pushIfRegistrySectionVariables(adapter: DebugProtocolAdapter, ex
value: VariableType.List,
children: []
});

pushCustomVariableToContainer(adapter, container, {
name: '$contents',
type: VariableType.AssociativeArray,
presentationHint: { kind: 'virtual' },
evaluateName: `${expression}.readMulti(${expression}.GetKeyList())`,
value: VariableType.AssociativeArray,
children: []
});
}

0 comments on commit 6f5449a

Please sign in to comment.