Skip to content

Conversation

EhabY
Copy link
Collaborator

@EhabY EhabY commented Sep 30, 2025

Fixes #330

Adds a search filter for both views "My Workspaces" and "All Workspaces", this depends on the VS Code command list.find so support fuzzy match and filtering but does not differentiate between nodes (so we filter on everything not just workspaces or agents... etc).

Also, I have add ids to all tree items, this guarantees that the expansion state stays the same between refreshes.

One downside to using this method is that whenever the tree view refreshes (which is every ~1s) the focus is shifted to the tree instead of the input. I tried to implement selective refreshing such that we refresh only the affected nodes but that didn't fix it :/. See:

Screencast.from.2025-09-08.15-32-59.webm

@EhabY EhabY force-pushed the add-search-filter-to-tree-views branch 2 times, most recently from c274710 to f558120 Compare September 30, 2025 11:50
@EhabY EhabY changed the title Add search filter to tree views Add search filter to Coder Workspaces tree views Sep 30, 2025
@EhabY EhabY requested a review from aslilac September 30, 2025 11:56
@EhabY EhabY force-pushed the add-search-filter-to-tree-views branch from f558120 to 017ad5f Compare October 1, 2025 15:24
@EhabY EhabY merged commit 66377d2 into coder:main Oct 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add search filter to sidebar
2 participants