diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index d97d1f864b..acb489efff 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -6826,6 +6826,7 @@ mod tests { .with_language_server(language_server, cx) }); let buffer = cx.add_model(|cx| MultiBuffer::singleton(buffer, cx)); + buffer.next_notification(&cx).await; let (_, editor) = cx.add_window(|cx| build_editor(buffer, settings, cx)); @@ -6881,6 +6882,7 @@ mod tests { ); apply_additional_edits }); + let (id, _) = fake .receive_request::() .await; @@ -6900,11 +6902,11 @@ mod tests { assert_eq!( editor.read_with(&cx, |editor, cx| editor.text(cx)), " - one.second_completion - two - three - additional edit - " + one.second_completion + two + three + additional edit + " .unindent() ); } diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs index bcc3d1c6c1..9342e956fb 100644 --- a/crates/language/src/buffer.rs +++ b/crates/language/src/buffer.rs @@ -746,6 +746,7 @@ impl Buffer { Operation::UpdateCompletionTriggers { triggers }, cx, ); + cx.notify(); }); } else { return;