Skip to content

TreeView search/filter input & api for customization #161753

Open

Description

@MaxKless

As was talked about in #70646, searching/filtering custom trees is really hard currently. Even if you get the unintuitive feature to work, as an extension author you have no control over how the tree will be updated.

To provide a better UX, it would be really nice to have fine-grained control over tree filtering via the vscode extension api:

  • control over whether a separate input field should be shown above a tree (like the one in the extensions or scm views)
  • callbacks including the search contents that can be used to populate the tree with items.

Thanks for considering this and thanks for an overall great developer experience with vscode :)

Activity

  1. added
    feature-request
    tree-views
    on Sep 27, 2022
  2. alexr00 commented on Sep 27, 2022

    @alexr00
    Member

    control over whether a separate input field should be shown above a tree (like the one in the extensions or scm views)

    This we will not do, as the ctrl+f command is our unified tree search mechanism. We will not use a different search UX for extension trees vs. core trees.

    callbacks including the search contents that can be used to populate the tree with items.

    This is a fair feature request.

  3. vscodenpa commented on Sep 27, 2022

    @vscodenpa

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  4. MaxKless commented on Sep 27, 2022

    @MaxKless
    Author

    Ok that makes sense. Thanks for the feedback.

  5. vscodenpa commented on Nov 3, 2022

    @vscodenpa

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  6. arnoudkooi commented on Nov 19, 2022

    @arnoudkooi

    Is there currently a way to not filter out children of a matching parent, or would that require this feature?
    image

  7. MaxKless commented on Nov 19, 2022

    @MaxKless
    Author

    That's pretty much what I'm trying to achieve with this feature :p

  8. mkarbo commented on Feb 15, 2024

    @mkarbo

    This would indeed be a lovely feature addition to the tree view API, hoping it gets picked up at some point

  9. wangxi761 commented on Jun 7, 2024

    @wangxi761

    Is there any progress on this issue

  10. qarlosalberto commented on Feb 26, 2025

    @qarlosalberto

    any progress?

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

Metadata

Metadata

Labels

feature-requesttree-views

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions