diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rs index 0edd79e0e4..2b0e2ce9cf 100644 --- a/crates/collab/src/db.rs +++ b/crates/collab/src/db.rs @@ -1924,7 +1924,9 @@ impl Database { }; if let Some(db_worktree) = db_worktree { - project.worktree_root_names.push(db_worktree.root_name); + if db_worktree.visible { + project.worktree_root_names.push(db_worktree.root_name); + } } } }