WIP: Add repository entries to collab and synchronize when rejoining the room

co-authored-by: Max <max@zed.dev>
This commit is contained in:
Mikayla Maki
2023-05-08 14:33:59 -07:00
co-authored by Max
parent 2fe5bf419b
commit 8301ee43d6
8 changed files with 267 additions and 70 deletions
+2
View File
@@ -1065,6 +1065,7 @@ async fn rejoin_room(
is_last_update: worktree.completed_scan_id == worktree.scan_id,
//TODO repo
updated_repositories: vec![],
removed_repositories: vec![],
};
for update in proto::split_worktree_update(message, MAX_CHUNK_SIZE) {
session.peer.send(session.connection_id, update.clone())?;
@@ -1387,6 +1388,7 @@ async fn join_project(
is_last_update: worktree.scan_id == worktree.completed_scan_id,
// TODO repo
updated_repositories: vec![],
removed_repositories: vec![],
};
for update in proto::split_worktree_update(message, MAX_CHUNK_SIZE) {
session.peer.send(session.connection_id, update.clone())?;