Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Change order of format and timeout futures (#26796)
Ben Kunkle685536c27ee0
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 34b25dcbea1..237c68491a9 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -12820,11 +12820,11 @@ impl Editor {cx.spawn_in(window, |_, mut cx| async move {let transaction = futures::select_biased! {+ transaction = format.log_err().fuse() => transaction,() = timeout => {log::warn!("timed out waiting for formatting");None}- transaction = format.log_err().fuse() => transaction,};buffer