Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use the console for errors too (#29992)
Conrad Irwin02765947e013
diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rsindex 6691a9ee692..113eb4c4635 100644--- a/crates/debugger_ui/src/debugger_panel.rs+++ b/crates/debugger_ui/src/debugger_panel.rs@@ -212,7 +212,6 @@ impl DebugPanel {cx: &mut Context<Self>,) {let dap_store = self.project.read(cx).dap_store();- let workspace = self.workspace.clone();let session = dap_store.update(cx, |dap_store, cx| {dap_store.new_session(scenario.label.clone(),@@ -251,14 +250,14 @@ impl DebugPanel {cx.spawn(async move |_, cx| {if let Err(error) = task.await {- log::error!("{:?}", error);- workspace- .update(cx, |workspace, cx| {- workspace.show_error(&error, cx);- })- .ok();session- .update(cx, |session, cx| session.shutdown(cx))?+ .update(cx, |session, cx| {+ session+ .console_output(cx)+ .unbounded_send(format!("error: {}", error))+ .ok();+ session.shutdown(cx)+ })?.await;}anyhow::Ok(())