Skip to content

[structure view] keep expanded/collapsed state of tree nodes when updating the tree #1643

Closed

Description

@martinlippert

When the structure tree view gets updated (for whatever reason), the expanded/collapsed state of the nodes should not be changed. At the moment, all nodes are expanded by default - and this default state is re-created when the tree gets updated (e.g. by the user changing a file). We need to keep the expanded/collapsed state somehow and not change it every time the tree gets updated.

Activity

  1. added this to the 5.0.0.RELEASE milestone on Sep 17, 2025
  2. added a commit that references this issue on Sep 25, 2025
  3. BoykoAlex commented on Sep 29, 2025

    @BoykoAlex
    Contributor

    @martinlippert this looks to be fixed by your commit: 6db4981

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: vscodetheme: structural viewtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions