You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Variable paging: support object properties for arrays #9670
I've added protocol support for Variables and the variablesRequest to distinguish between indexed and named properties of an object. This makes it possible to show both types of properties like in this example:
The API works as follows:
a Variable optionally returns an indexVariables and/or a namedVariables property.
the indexVariables works like 'totalCount' before.
an namedVariables indicates that the variable has 'named' properties (in addition to 'indexed' properties). In this case the frontend is expected to request both the 'named' properties and the 'indexed' properties. The 'named' properties are requested through the variableRequest with a filter attribute 'named'.
From how the protocol is designed I see that the named properties should also support paging? If yes, how should the UI distinguish between chunks of named and chunks of indexed variables if an object has 100+ named and 100+ indexed variables?
Currently we show the indexed with 0..99:
The simplest solution is to not support named properties paging on the vscode side until there is a use case for it.
Isidor Nikolic (@isidorn) the UI could use 'a'-'z' for the top level nodes. However, I don't think that we have to support paging for now. Showing always all named properties is fine for now.
The typical use case for named properties is an array that always has a single length property.
Activity
isidorn commentedon Jul 25, 2016
From how the protocol is designed I see that the named properties should also support paging? If yes, how should the UI distinguish between chunks of named and chunks of indexed variables if an object has 100+ named and 100+ indexed variables?
Currently we show the indexed with
0..99:The simplest solution is to not support named properties paging on the vscode side until there is a use case for it.
weinand commentedon Jul 25, 2016
Isidor Nikolic (@isidorn) the UI could use 'a'-'z' for the top level nodes. However, I don't think that we have to support paging for now. Showing always all named properties is fine for now.
The typical use case for named properties is an array that always has a single
lengthproperty.debug variable paging: support object properties for arrays