microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.8k stars 28.19k forks source link

TreeView search/filter input & api for customization #161753

Open MaxKless opened 1 year ago

MaxKless commented 1 year ago

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:

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

alexr00 commented 1 year ago

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.

VSCodeTriageBot commented 1 year ago

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!

MaxKless commented 1 year ago

Ok that makes sense. Thanks for the feedback.

VSCodeTriageBot commented 1 year ago

:slightly_smiling_face: 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!

arnoudkooi commented 1 year ago

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

image
MaxKless commented 1 year ago

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

mkarbo commented 5 months ago

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

wangxi761 commented 1 month ago

Is there any progress on this issue