You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Walkthrough
The formatter crate adds FormatEmbedded to format embedded content and emit embedded tags. CSS, HTML, and JavaScript formatter paths use this shared type instead of manually constructing buffers and tags. The Markdown formatter removes its local FormatEmbedded helper. Documentation now describes embedded-content replacement by source range.
Suggested labels: L-JavaScript
Priority: β¬οΈ Low
Change: Refactor
Merge Risk:βͺ Minimal Β· up to 88a29
The shared embedded-formatting helper appears to preserve existing output and error behavior. No actionable merge risk remains after normal checks.
Pre-merge checks: 4
Check name
Status
Explanation
Description check
The description explains that FormatEmbedded moved into biome_formatter to reduce repeated code. This matches the changeset.
Title check
The title clearly and concisely describes the main change: making embedding generic.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
β¨ Finishing Touches
π§ͺ Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix Β· Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use path_filters to narrow the review scope.
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.
Merging this PR will improve performance by 11.81%
1 warning
β οΈ14 benchmarks are dominated by system calls
System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A-FormatterArea: formatterL-CSSLanguage: CSS and super languagesL-HTMLLanguage: HTML and super languagesL-JavaScriptLanguage: JavaScript and super languagesL-MarkdownLanguage: Markdown
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implemented via a coding agent.
This PR moves
FormatEmbeddedinside thebiome_formattercrate. We started to have repeated code.Test Plan
Green CI
Docs
N/A