Handle buffer deduping in the worktree instead of in workspace

Previously, buffers were only deduped by file if they were opened
through Workspace::open_entry
This commit is contained in:
Max Brunsfeld 2021-12-13 16:35:32 -08:00
parent 52b8e3d1a2
commit 6ab795c629
5 changed files with 293 additions and 197 deletions

View file

@ -1064,7 +1064,7 @@ mod tests {
// TODO
// // Remove the selection set as client B, see those selections disappear as client A.
// cx_b.update(move |_| drop(editor_b));
cx_b.update(move |_| drop(editor_b));
// buffer_a
// .condition(&cx_a, |buffer, _| buffer.selection_sets().count() == 0)
// .await;