editor: Do not show edit prediction during in-progress IME composition (#37400)

Smit Barmase created

Closes #37249

We no longer show edit prediction when composing IME since it isn't
useful for unfinished alphabet.

Release Notes:

- Fixed edit predictions showing up during partial IME composition.

Change summary

crates/editor/src/editor.rs | 5 +++++
1 file changed, 5 insertions(+)

Detailed changes

crates/editor/src/editor.rs 🔗

@@ -7744,6 +7744,11 @@ impl Editor {
             return None;
         }
 
+        if self.ime_transaction.is_some() {
+            self.discard_edit_prediction(false, cx);
+            return None;
+        }
+
         let selection = self.selections.newest_anchor();
         let cursor = selection.head();
         let multibuffer = self.buffer.read(cx).snapshot(cx);