-
Notifications
You must be signed in to change notification settings - Fork 75
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
Don't show non-instantiated variables #2061
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Elliott, adding tests would be awesome!
@@ -67,6 +67,8 @@ Future<List<Property>> visibleProperties({ | |||
if (value == null) return true; | |||
|
|||
final type = value.type; | |||
if (type == 'undefined') return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think correct behavior according to the vm_service protocol is to have sentinel instead of an InstanceRef, but that would require more work and can be postponed to later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice! We can track in #2056
Added a couple test cases! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTGM!
Fixes #2060
Work towards #2056
See screenshots below:
When paused at:
With this change:
name
is not shown (this matches the behavior ofvm_service
)count
isnull
(as expected)first
andsecond
are not shown (as expected)Without this change:
name
is shown and isnull
(does not matchvm_service
implementation!)first
andsecond
are shown asnull
(not expected!)