Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Allow child-class to customize the creation of IVariableContainer . #279

Merged
merged 2 commits into from
Feb 7, 2018

Conversation

changsi-an
Copy link
Contributor

@changsi-an changsi-an commented Feb 7, 2018

This allows another Debug Adapter implementation to decide what will happen when an object is expanded and its properties are shown, and how to change value for each of the properties it owns.

We need this, because EDP uses a different way of changing an object's property. The current logic in setPropertyValue does not work for EDP.

After this override point is enabled. We are able to create and use another IVariableContainer like this: MSPropertyContainer. There we capture the needed metadata when an object is expanded. And use that metadata to change an object property value when setValue() method is called.

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

This looks great. Is it ready to merge?

@changsi-an
Copy link
Contributor Author

@roblourens Yes, it is ready to merge. We are actually waiting on it to merge the other PR in edge debug adapter. ( after we could bump up the chrome-core version) So please do a NPM release after the merge. Thanks Rob.

@roblourens roblourens merged commit c9e6070 into microsoft:master Feb 7, 2018
@roblourens
Copy link
Member

Done

@roblourens roblourens added this to the February 2018 milestone Mar 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants