mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-02 05:20:29 +01:00
2f09a4af16
When a project was getting unshared, we would remove invisible worktrees from the project's state without notifying the server, which was causing the randomized tests to fail. This commit calls `Project::remove_worktree` when a worktree's handle gets released. Doing so ensures that we update both our local metadata database as well as the state on the server.