-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Cannot expand prototype #3387
Comments
The prototype has a twistie because it has reference > 0 as returned by the adapter. On the vscode side we expand it lazily which means we only request children once the user clicks expand. So this might be a feature request that variables with no children should not have reference > 0 |
Not sure I'd label this one as a feature request :), my end user impression is that there is a bug in the hover, in the tree, or in the debugger. |
@alexandrudima for structured objects, we do not know whether it has properties without fetching them (the v8debugger protocol does not provide a mechanism for retrieving the number of properties independently from fetching them all). Fetching all properties all the time just to learn whether a twistie is required or not can be very expensive if the object is large (e.g. an array). This strategy is consistent with the VS Code navigator: it shows a twistie for folders even if the folder is empty. |
Testing #2941
prototype
has a twisty so IMHO there should be some content under itThe text was updated successfully, but these errors were encountered: