diff --git a/crates/workspace/src/notifications.rs b/crates/workspace/src/notifications.rs index 8480d1276705c50b824b878cf8626e85ea9fcdbe..10437743df39b22722638357976d5a8d6224eaf8 100644 --- a/crates/workspace/src/notifications.rs +++ b/crates/workspace/src/notifications.rs @@ -519,8 +519,17 @@ impl Render for ErrorMessagePrompt { }), ) .child( - ui::IconButton::new("close", ui::IconName::Close) - .on_click(cx.listener(|_, _, _, cx| cx.emit(DismissEvent))), + h_flex() + .gap_1() + .child( + CopyButton::new("copy-error-message", self.message.clone()) + .tooltip_label("Copy Error Message"), + ) + .child( + ui::IconButton::new("close", ui::IconName::Close).on_click( + cx.listener(|_, _, _, cx| cx.emit(DismissEvent)), + ), + ), ), ) .child(