diff --git a/crates/diagnostics/src/items.rs b/crates/diagnostics/src/items.rs index 4a402522bd..e2961ff3bd 100644 --- a/crates/diagnostics/src/items.rs +++ b/crates/diagnostics/src/items.rs @@ -86,10 +86,11 @@ impl View for DiagnosticIndicator { enum Summary {} enum Message {} + let tooltip_style = cx.global::().theme.tooltip.clone(); let in_progress = !self.in_progress_checks.is_empty(); let mut element = Flex::row().with_child( MouseEventHandler::new::(0, cx, |state, cx| { - let style = &cx + let style = cx .global::() .theme .workspace @@ -161,6 +162,13 @@ impl View for DiagnosticIndicator { }) .with_cursor_style(CursorStyle::PointingHand) .on_click(|_, _, cx| cx.dispatch_action(crate::Deploy)) + .with_tooltip::( + 0, + "Project Diagnostics".to_string(), + Some(Box::new(crate::Deploy)), + tooltip_style, + cx, + ) .aligned() .boxed(), );