Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Excluded deleted entries when initially sending worktrees to guests
Max Brunsfeld42e74e7eefff
diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rsindex 8b275bb680e..31f6f9cd09e 100644--- a/crates/collab/src/db.rs+++ b/crates/collab/src/db.rs@@ -2390,7 +2390,11 @@ impl Database {// Populate worktree entries.{let mut db_entries = worktree_entry::Entity::find()- .filter(worktree_entry::Column::ProjectId.eq(project_id))+ .filter(+ Condition::all()+ .add(worktree_entry::Column::ProjectId.eq(project_id))+ .add(worktree_entry::Column::IsDeleted.eq(false)),+ ).stream(&*tx).await?;while let Some(db_entry) = db_entries.next().await {