Show dev server in the titlebar for remote projects (#11276)

Co-Authored-By: Mikayla <mikayla@zed.dev>

Release Notes:

- Show server name in the titlebar for remote projects

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Conrad Irwin 2024-05-01 16:24:58 -06:00 committed by GitHub
parent 74f8ef0364
commit eb0f1e71f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 53 additions and 5 deletions

View file

@ -114,6 +114,11 @@ impl Store {
self.remote_projects.get(&id)
}
pub fn dev_server_for_project(&self, id: RemoteProjectId) -> Option<&DevServer> {
self.remote_project(id)
.and_then(|project| self.dev_server(project.dev_server_id))
}
async fn handle_remote_projects_update(
this: Model<Self>,
envelope: TypedEnvelope<proto::RemoteProjectsUpdate>,