Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update is_deleted when sending new repositories

Mikayla Maki5accf7cf4e5c
diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rs
index 69b561c054f..f5175a16a97 100644
--- a/crates/collab/src/db.rs
+++ b/crates/collab/src/db.rs
@@ -2471,12 +2471,14 @@ impl Database {
.update_columns([
worktree_repository_statuses::Column::ScanId,
worktree_repository_statuses::Column::Status,
+ worktree_repository_statuses::Column::IsDeleted,
])
.to_owned(),
)
.exec(&*tx)
.await?;
}
+
if !repository.removed_worktree_repo_paths.is_empty() {
worktree_repository_statuses::Entity::update_many()
.filter(