We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955248f commit 1c6dd03Copy full SHA for 1c6dd03
crates/diagnostics/src/diagnostics.rs
@@ -95,6 +95,7 @@ impl Render for ProjectDiagnosticsEditor {
95
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
96
let child = if self.path_states.is_empty() {
97
div()
98
+ .key_context("EmptyPane")
99
.bg(cx.theme().colors().editor_background)
100
.flex()
101
.items_center()
@@ -106,10 +107,8 @@ impl Render for ProjectDiagnosticsEditor {
106
107
};
108
109
110
+ .key_context("Diagnostics")
111
.track_focus(&self.focus_handle(cx))
- .when(self.path_states.is_empty(), |el| {
- el.key_context("EmptyPane")
112
- })
113
.size_full()
114
.on_action(cx.listener(Self::toggle_warnings))
115
.child(child)
0 commit comments