Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Don't wait to dispatch commands (#7755)
Conrad Irwin7956a9a54794
diff --git a/crates/command_palette/src/command_palette.rs b/crates/command_palette/src/command_palette.rsindex 5e7f5938efb..50ededd122c 100644--- a/crates/command_palette/src/command_palette.rs+++ b/crates/command_palette/src/command_palette.rs@@ -317,9 +317,7 @@ impl PickerDelegate for CommandPaletteDelegate {});let action = command.action;cx.focus(&self.previous_focus_handle);- cx.window_context()- .spawn(move |mut cx| async move { cx.update(|cx| cx.dispatch_action(action)) })- .detach_and_log_err(cx);+ cx.dispatch_action(action);self.dismissed(cx);}