Wait for additional edits before pushing transaction in remote buffer

This commit is contained in:
Antonio Scandurra 2022-02-02 17:01:23 +01:00
parent d765e75bad
commit 924eb622ae
4 changed files with 41 additions and 1 deletions

View file

@ -1910,6 +1910,8 @@ impl Buffer {
);
cx.spawn(|this, mut cx| async move {
let edit_ids = apply_edits.await?;
this.update(&mut cx, |this, _| this.text.wait_for_edits(&edit_ids))
.await;
if push_to_history {
this.update(&mut cx, |this, _| {
this.text