Files
zed/crates
buvidk1234 e38d4ec980 Fix active repository selection after removing remote worktrees (#66299)
Removing a project folder containing the active Git repository from a
remote workspace could leave the Git panel showing “No Git Repositories”
and an “Initialize Repository” button, even when other Git repositories
remained open.

Select a remaining repository when the active repository is removed.
Preserve the current selection when removing another repository, and
clear it when the last repository is removed.

Testing:
- Added a regression test covering removal of an inactive repository,
the active repository, and the last repository.
- Confirmed the regression test fails before the fix and passes
afterward on Windows.
- Passed the existing remote worktree add/remove/re-add test.

Release Notes:

- Fixed the Git panel showing “No Git Repositories” after removing the
active repository's project folder from a remote workspace while other
repositories remain open.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
2026-11-02 14:55:47 +00:00
..
2026-11-01 07:50:34 +00:00
…
2026-10-26 11:20:07 +00:00
…
2026-10-29 10:48:05 +00:00
2026-10-29 10:48:05 +00:00
2026-10-26 13:46:57 +00:00
…
…
…
…
…
…
…
…
…