Skip to content

Commit

Permalink
diagnostics: Ensure that clean state is not shown when tab content in…
Browse files Browse the repository at this point in the history
…dicates problems in workspace
  • Loading branch information
osiewicz committed Feb 21, 2025
1 parent dff47a8 commit f33c16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/diagnostics/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const DIAGNOSTICS_UPDATE_DEBOUNCE: Duration = Duration::from_millis(50);

impl Render for ProjectDiagnosticsEditor {
fn render(&mut self, _: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
let child = if self.path_states.is_empty() {
let child = if self.summary.warning_count + self.summary.error_count > 0 {
div()
.key_context("EmptyPane")
.bg(cx.theme().colors().editor_background)
Expand Down

0 comments on commit f33c16b

Please sign in to comment.