Fix formatting in diagnostic printer#41
Fix formatting in diagnostic printer#41warunalakshitha merged 2 commits intoballerina-platform:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesDiagnostic Output Formatting
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Purpose
$subject
Summary
This pull request improves the formatting of diagnostic output in the WASM diagnostic printer. The change refines how source lines are rendered by adjusting the line-number separator formatting to include explicit reset codes and proper spacing around the separator marker. This enhancement improves the visual presentation and clarity of diagnostic messages displayed to users.
Files Changed:
packages/wasm/diagnostic_printer.go: Formatting improvements to source snippet renderingImpact: Minimal, low-effort change that enhances diagnostic output presentation without affecting diagnostic selection or highlighting logic.