fix(css_formatter): preserve blank lines between SCSS map pairs - #10427
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR converts several SCSS formatter helpers from formatter-producing fragments to writer-style helpers and refactors map-pair list formatting. It adds AstSeparatedList and changes map-pair joining to build a separated comma list (no trailing comma) then join elements with soft-line logic to preserve original blank lines. Related writer helpers were added for broken map pairs, parenthesised trailing commas, closing comments, include lists and non-empty map layout; tests were updated. Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Preserve source blank lines between SCSS map pairs.
Test Plan