Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add Diagnostics key context (#23043)
everdrone1c6dd03e50ba
diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rsindex 43464310ed8..71f96e9f9bc 100644--- a/crates/diagnostics/src/diagnostics.rs+++ b/crates/diagnostics/src/diagnostics.rs@@ -95,6 +95,7 @@ impl Render for ProjectDiagnosticsEditor {fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {let child = if self.path_states.is_empty() {div()+ .key_context("EmptyPane").bg(cx.theme().colors().editor_background).flex().items_center()@@ -106,10 +107,8 @@ impl Render for ProjectDiagnosticsEditor {};div()+ .key_context("Diagnostics").track_focus(&self.focus_handle(cx))- .when(self.path_states.is_empty(), |el| {- el.key_context("EmptyPane")- }).size_full().on_action(cx.listener(Self::toggle_warnings)).child(child)