Show host in titlebar
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
219715449d
commit
1cfc2f0c07
7 changed files with 110 additions and 2 deletions
|
@ -975,6 +975,10 @@ impl Project {
|
|||
&self.collaborators
|
||||
}
|
||||
|
||||
pub fn host(&self) -> Option<&Collaborator> {
|
||||
self.collaborators.values().find(|c| c.replica_id == 0)
|
||||
}
|
||||
|
||||
/// Collect all worktrees, including ones that don't appear in the project panel
|
||||
pub fn worktrees<'a>(
|
||||
&'a self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue