project_panel: Allow renaming a root to match a child directory (#64268)
# Objective
- Allow renaming a project root folder to the same name as one of its
child folders.
- Fixes #64255
## Solution
- Skip child-entry collision checks when renaming a project root.
- Keep existing collision checks for other entries.
## Testing
- Updated and ran `test_rename_root_of_worktree`.
- Manually tested on macOS.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Fixed an issue where a project root folder could not be renamed to
match a child folder.
---------
Co-authored-by: dino <dinojoaocosta@gmail.com>
02238cd4b7D4r3N committed on 9/22/2026, 10:19:27 AM· committed by GitHubparent05c2c9a