From 9e2c493b865babf503480cee991aa17046885b93 Mon Sep 17 00:00:00 2001 From: Malin von Matern <26329643+vonEdfa@users.noreply.github.com> Date: Mon, 20 Apr 2026 10:53:15 +0200 Subject: [PATCH] Fix info colors used for hint diagnostics (#54046) Super small update changing two instances where `DiagnosticSeverity::HINT` was set to use the color for "info". Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #45637 Release Notes: - Fixed various instances of hint level diagnostics using the color designated for info --- crates/diagnostics/src/diagnostic_renderer.rs | 2 +- crates/editor/src/editor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/diagnostics/src/diagnostic_renderer.rs b/crates/diagnostics/src/diagnostic_renderer.rs index eaf414560845ea326fc508fe19d71fb01ebc1f32..21da60b5161ff282779b1ff72f3975bff3b36519 100644 --- a/crates/diagnostics/src/diagnostic_renderer.rs +++ b/crates/diagnostics/src/diagnostic_renderer.rs @@ -206,7 +206,7 @@ impl DiagnosticBlock { (status_colors.warning_background, status_colors.warning) } DiagnosticSeverity::INFORMATION => (status_colors.info_background, status_colors.info), - DiagnosticSeverity::HINT => (status_colors.hint_background, status_colors.info), + DiagnosticSeverity::HINT => (status_colors.hint_background, status_colors.hint), _ => (status_colors.ignored_background, status_colors.ignored), }; let settings = ThemeSettings::get_global(cx); diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 7897ccf89843a033ad8431e0f6cafc3a13a9295c..b2d3d354660c796cdecf34b796f9eb0d49f4fbd6 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -29378,7 +29378,7 @@ pub fn diagnostic_style(severity: lsp::DiagnosticSeverity, colors: &StatusColors lsp::DiagnosticSeverity::ERROR => colors.error, lsp::DiagnosticSeverity::WARNING => colors.warning, lsp::DiagnosticSeverity::INFORMATION => colors.info, - lsp::DiagnosticSeverity::HINT => colors.info, + lsp::DiagnosticSeverity::HINT => colors.hint, _ => colors.ignored, } }