Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $contents virtual variable to roRegistrySection #231

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

sethmaclean
Copy link
Collaborator

@sethmaclean sethmaclean commented Feb 21, 2025

This PR provides a new virtual variable callled $contents to read registry values from roRegistrySection in the variables panel

@sethmaclean sethmaclean self-assigned this Feb 21, 2025
@TwitchBronBron TwitchBronBron changed the title added new virtual variable called contents Add $contents virtual variable to roRegistrySection Feb 21, 2025
@@ -12,4 +12,13 @@ export function pushIfRegistrySectionVariables(adapter: DebugProtocolAdapter, ex
value: VariableType.List,
children: []
});

pushCustomVariableToContainer(adapter, container, {
name: '$contents',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still feel like we could find a "better" name than $contents, but I can't think of anything better. It's easy enough to change this in the future, so no need to hold up the PR. @chrisdp if you're good with this, feel free to merge.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TwitchBronBron definitely agree, I cropped up these names if anything stands out.

  • registryValues

  • keyData

  • sectionContent

  • sectionData

  • regSectionData

  • sectionListData

  • sectionListContent

  • keyContents

  • keyListContent

  • keyItemValues

  • sectionItems

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we ship it and change it later like you said. It's not unclear with the current name.

@TwitchBronBron TwitchBronBron merged commit 6f5449a into master Feb 21, 2025
6 checks passed
@TwitchBronBron TwitchBronBron deleted the new-registry-section-virtual-variable branch February 21, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants