WIP: Start on sending view updates to followers

This commit is contained in:
Antonio Scandurra 2022-03-18 14:20:09 +01:00
parent f0b7bd6e17
commit 10e6d82c3e
5 changed files with 146 additions and 45 deletions

View file

@ -4248,6 +4248,17 @@ mod tests {
.project_path(cx)),
Some((worktree_id, "2.txt").into())
);
// When client A activates a different editor, client B does so as well.
workspace_a.update(cx_a, |workspace, cx| {
workspace.activate_item(editor_a1.as_ref(), cx)
});
workspace_b
.condition(cx_b, |workspace, cx| {
let active_item = workspace.active_item(cx).unwrap();
active_item.project_path(cx) == Some((worktree_id, "1.txt").into())
})
.await;
}
#[gpui::test(iterations = 100)]