mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
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
This commit is contained in:
parent
32fa09132e
commit
9e2c493b86
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue