Handle unshared projects when rejoining a room

Also, construct remote projects via the room, to guarantee
that the room can manage the projects' sharing lifecycle.

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Max Brunsfeld
2022-12-20 11:10:46 -08:00
co-authored by Antonio Scandurra
parent 9d15b3d295
commit 55ebfe8321
7 changed files with 120 additions and 48 deletions
+1 -1
View File
@@ -1146,7 +1146,7 @@ impl Project {
}
}
fn disconnected_from_host(&mut self, cx: &mut ModelContext<Self>) {
pub fn disconnected_from_host(&mut self, cx: &mut ModelContext<Self>) {
if let Some(ProjectClientState::Remote {
sharing_has_stopped,
..