-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
project_panel: Add ability to hide the worktree root #25289
base: main
Are you sure you want to change the base?
Conversation
How does this behave when you are in a project with multiple worktrees open? |
@maxdeviant : If there is only one worktree, we respect the Do you think this could be a solution? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution!
Could you add a test showing this setting functioning?
Also, I think we'll need to make sure that updating this setting will trigger a visible entry recalculation (see relevant code here:
zed/crates/project_panel/src/project_panel.rs
Line 414 in 4453fc4
cx.observe_global::<SettingsStore>(move |this, cx| { |
Also, could you test how this works with the auto_fold_dirs
setting?
Closes #24188
Release Notes: