Skip to content

Configure variables view presentation of len() #1581

@dimateos

Description

@dimateos

So there is "variablePresentation" to configure hiding/grouping etc función kinds.

Note that there is no global way to set it yet microsoft/vscode-python-debugger#165, but it can be done per launch config.

I was wondering if there was a way to configure the automomatic call to len() that appears at the end.
image

Something like:

  • Hiding it, i.g. reduce vertical space usage for many small lists
  • Moving it at the top, i.e. making it visible without having to open the collapsible region
  • Or a bit more involved config:
    • Showing it only when the full list of elements are hidden (over 100... etc) (bwt can this amount shown be configured?)
    • Move it to the top, but when the variable is expanded hide it from the list and replace the text next to the variable name (reduce redundant data):
      image

Probably there are other functions similar to len() that get called but I cannot recall right now.
So I guess those could be affected by these options too.

Best regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions