Skip to content

Serilog Syntax Highlighting v0.6.0

Choose a tag to compare

@github-actions github-actions released this 07 Sep 03:15

Installation

Download the attached VSIX file and double-click to install in Visual Studio 2022.

What's Changed

Added

  • Automatic theme-aware WCAG-compliant colors (#9)
    • Colors now automatically switch between Light and Dark Visual Studio themes
    • All colors maintain ≥4.5:1 contrast ratio for WCAG AA compliance
    • SerilogThemeColors service with VSColorTheme.ThemeChanged event handling
    • Theme detection using background color heuristic for custom theme compatibility
    • Semantic color grouping: properties (blue family), operators (warm colors), functions (purple family)
    • All 15 classification format definitions converted to use SerilogClassificationFormatBase
    • Automatic color updates when themes change without VS restart

Fixed

  • ExpressionTemplate multi-line highlighting regression
    • Removed overlapping classifications that caused highlighting artifacts
    • Simplified regex pattern detection for better reliability
    • Added deduplication logic to prevent classification conflicts

Requirements

  • Visual Studio 2022 (17.0) or later
  • .NET Framework 4.7.2 or later

Full Changelog: https://github.com/willibrandon/serilog-syntax/blob/main/CHANGELOG.md