Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant: Show more details for assist errors (#20740)
Marshall Bowersda09cbd05579
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rsindex 3978d627d19..1a6e1c217e8 100644--- a/crates/assistant/src/assistant_panel.rs+++ b/crates/assistant/src/assistant_panel.rs@@ -3920,7 +3920,7 @@ impl ContextEditor {.child(div().id("error-message")- .max_h_24()+ .max_h_32().overflow_y_scroll().child(Label::new(error_message.clone())),)diff --git a/crates/assistant/src/context.rs b/crates/assistant/src/context.rsindex d16a0a79654..807d03ea5fb 100644--- a/crates/assistant/src/context.rs+++ b/crates/assistant/src/context.rs@@ -2383,7 +2383,11 @@ impl Context {});Some(error.to_string())} else {- let error_message = error.to_string().trim().to_string();+ let error_message = error+ .chain()+ .map(|err| err.to_string())+ .collect::<Vec<_>>()+ .join("\n");cx.emit(ContextEvent::ShowAssistError(SharedString::from(error_message.clone(),)));