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

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.
This commit is contained in:
Smit Barmase
2025-09-03 03:41:10 +05:30
committed by GitHub
parent 8770fcc841
commit e4df866664
+5
View File
@@ -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);