From a0cccf09f64d707f997261928e26a3f0bdcc829d Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 26 Mar 2023 22:23:06 +0800 Subject: [PATCH] feat(diagnostics): bold warnings --- crates/oxc_diagnostics/src/graphic_reporter.rs | 2 +- crates/oxc_diagnostics/src/graphical_theme.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_diagnostics/src/graphic_reporter.rs b/crates/oxc_diagnostics/src/graphic_reporter.rs index d40f8482d..090b33362 100644 --- a/crates/oxc_diagnostics/src/graphic_reporter.rs +++ b/crates/oxc_diagnostics/src/graphic_reporter.rs @@ -91,7 +91,7 @@ impl GraphicalReportHandler { /// Whether to include [`Diagnostic::url()`] in the output. /// /// Disabling this is not recommended, but can be useful for more easily - /// reproducable tests, as `url(docsrs)` links are version-dependent. + /// reproducible tests, as `url(docsrs)` links are version-dependent. pub fn with_urls(mut self, urls: bool) -> Self { self.links = match (self.links, urls) { (_, false) => LinkStyle::None, diff --git a/crates/oxc_diagnostics/src/graphical_theme.rs b/crates/oxc_diagnostics/src/graphical_theme.rs index 9338825a6..5d0a7733b 100644 --- a/crates/oxc_diagnostics/src/graphical_theme.rs +++ b/crates/oxc_diagnostics/src/graphical_theme.rs @@ -92,7 +92,7 @@ impl ThemeStyles { pub fn rgb() -> Self { Self { error: style().fg_rgb::<225, 80, 80>().bold(), // CHANGED: <255, 30, 30> - warning: style().fg_rgb::<244, 191, 117>(), + warning: style().fg_rgb::<244, 191, 117>().bold(), advice: style().fg_rgb::<106, 159, 181>(), help: style().fg_rgb::<106, 159, 181>(), link: style().fg_rgb::<92, 157, 255>().bold(),