Report running language servers when sharing project for the first time

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-06-21 20:39:54 +02:00
parent e9d19457d6
commit 69aa3d848e
2 changed files with 39 additions and 5 deletions

View file

@ -1256,6 +1256,18 @@ impl Project {
});
}
for (server_id, status) in &self.language_server_statuses {
self.client
.send(proto::StartLanguageServer {
project_id,
server: Some(proto::LanguageServer {
id: *server_id as u64,
name: status.name.clone(),
}),
})
.log_err();
}
cx.spawn(|this, mut cx| async move {
for task in tasks {
task.await?;