project panel: Collapse All improvements#47328
Merged
smitbarmase merged 12 commits intozed-industries:mainfrom Feb 5, 2026
Merged
project panel: Collapse All improvements#47328smitbarmase merged 12 commits intozed-industries:mainfrom
smitbarmase merged 12 commits intozed-industries:mainfrom
Conversation
austincummings
commented
Jan 21, 2026
smitbarmase
requested changes
Jan 27, 2026
Member
smitbarmase
left a comment
There was a problem hiding this comment.
Thanks, I have added few comments:
d0aa57d to
70b992c
Compare
Added a test to cover collapsing the project panel selected entry and its children. Added `project` and `recent_projects` to dev-dependencies to fix a non-exhaustive pattern match error when running `cargo test -p project_panel`.
Addresses PR feedback: When collapsing a root entry in a multi-worktree project, only the selected worktree should be collapsed, not all worktrees. - Single-worktree projects: Keep root expanded, collapse all children (unchanged) - Multi-worktree projects: Only collapse the selected worktree and its children
70b992c to
30eab4e
Compare
smitbarmase
approved these changes
Feb 5, 2026
Member
smitbarmase
left a comment
There was a problem hiding this comment.
Thanks for the PR @austincummings!
I made a few changes on top of your work. All actions are sound. I realized we definitely need different "Collapse All" behavior from the context menu for root entries. So I changed that to handle the special case of single vs multi-project workspaces. We don't need this for actions, but it felt really important for the context menu.
rtfeldman
pushed a commit
that referenced
this pull request
Feb 5, 2026
Thanks to @jackTabsCode for the original commit that I based my work off of. See: #27703 Release Notes: - Fixed clicking "Collapse All" from context menu on a project root collapsing all project roots instead of that one. - Added new `project panel: collapse selected entry and children` action that collapses the selected directory and all its subdirectories. - Added "Collapse All" option to the context menu for all directories, not just project roots. --------- Co-authored-by: Jack T <jack@jackt.space> Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
naaiyy
added a commit
to Glass-HQ/Glass
that referenced
this pull request
Feb 16, 2026
Key changes: - Thermal state detection (zed-industries#45638) - GPUI detects system thermal state, throttles to ~60fps when overheating - Checkerboard shader for side-by-side diff (zed-industries#48417) - visual pattern for diff backgrounds - cosmic-text v0.17 (zed-industries#48504) - fixes font ligatures on Linux - Middle click tab close (zed-industries#44916) - on_aux_click/is_middle_click API additions - Soft wrap modes for wrap width (zed-industries#46422) - Tab switcher mode similar to vim/helix buffer picker (zed-industries#47079) - Multi_buffer optimization batch (zed-industries#48519) - TreeMap for diagnostics (zed-industries#48482) - performance improvement - Semantic token follow-up fixes (zed-industries#48485) - Claude Opus 4.6 and 1M context window model variants (zed-industries#48508) - Anthropic adaptive thinking types (zed-industries#48517) - Side-by-side diff: hunk gutter highlights restored, toolbar buttons for SplittableEditor - Shell quote bypass fix in terminal permission system (zed-industries#48436) - Project panel: Collapse All improvements (zed-industries#47328, zed-industries#48443) - Edit prediction: trailing newlines fix, cursor position in global coords - Properly discard tokens on language server stop (zed-industries#48490) - AgentTool::NAME const instead of hardcoded strings (zed-industries#48506) Conflict resolution: - collab/editor_tests.rs: deleted (collab removed) - vim (helix, motion, increment): deleted (vim removed) - GPUI (17 files): deleted from Glass (handled in Obsydian-HQ/gpui) - editor/items.rs: merged imports (added BufferId, kept Theme) - project_diff.rs: removed old native_button toggle (upstream uses toolbar buttons now) - lsp_store.rs: added SemanticTokenConfig, removed GlobalLogStore/LanguageServerKind - project_panel.rs: merged UI imports (added ContextMenuEntry, ScrollAxes) - Keymaps: took upstream JetBrains bindings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks to @jackTabsCode for the original commit that I based my work off of.
See: #27703
Release Notes:
project panel: collapse selected entry and childrenaction that collapses the selected directory and all its subdirectories.