Skip to content

Variable paging: support object properties for arrays #9670

Closed

Description

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:

2016-07-24_23-59-07

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'.

Activity

  1. added
    feature-request
    debug
    on Jul 24, 2016
  2. isidorn commented on Jul 25, 2016

    @isidorn

    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.

  3. weinand commented on Jul 25, 2016

    @weinand
    ContributorAuthor

    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.

  4. locked and limited conversation to collaborators on Nov 18, 2017
  5. added a commit that references this issue on Sep 6, 2026
    7163d2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions