## Context This fixes a bug where switching to a worktree workspace sometimes briefly flashes it as a top-level project in the sidebar. This happened because the sidebar would rebuild its entries whenever the multi workspace emits the added workspace event. The fix is checking from the root workspace git linked worktree list as well to see if newly added workspaces are linked. ## Self-Review Checklist <!-- Check before requesting review: --> - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A
1 file changedLine totals unavailable