Skip to content

refactor(formatter): treat a sibling starting at the enclosing end as outside for trailing comments - #28174

Merged
graphite-app[bot] merged 1 commit into
mainfrom
10-26-refactor_formatter_treat_a_sibling_starting_at_the_enclosing_end_as_outside_for_trailing_comments
Oct 26, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
10-26-refactor_formatter_treat_a_sibling_starting_at_the_enclosing_end_as_outside_for_trailing_comments

Conversation

@leaysgur

Copy link
Copy Markdown
Member
  • Use >= for trailing comment bound
  • Remove the explicit trailing comment prints that worked around it in JSXExpressionContainer, write_jsx_spread and FormatOpeningElement

leaysgur commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the A-formatter Area - Formatter (oxfmt). Add F-* labels for details label Oct 26, 2026
@codspeed

codspeed Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 77 untouched benchmarks
⏩ 19 skipped benchmarks1


Comparing 10-26-refactor_formatter_treat_a_sibling_starting_at_the_enclosing_end_as_outside_for_trailing_comments (fa82cb8) with 10-26-fix_formatter_keep_fill_layout_for_array_with_comment_after_ (9e5b3e7)

Open in CodSpeed

Footnotes

  1. 19 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@leaysgur leaysgur added the 0-merge Merge with Graphite Merge Queue label Oct 26, 2026

leaysgur commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

… outside for trailing comments (#28174)

- Use `>=` for trailing comment bound
- Remove the explicit trailing comment prints that worked around it in `JSXExpressionContainer`, `write_jsx_spread` and `FormatOpeningElement`
@graphite-app
graphite-app Bot force-pushed the 10-26-fix_formatter_keep_fill_layout_for_array_with_comment_after_ branch from 9e5b3e7 to 5042019 Compare October 26, 2026 08:31
@graphite-app
graphite-app Bot force-pushed the 10-26-refactor_formatter_treat_a_sibling_starting_at_the_enclosing_end_as_outside_for_trailing_comments branch from fa82cb8 to 8d86bd2 Compare October 26, 2026 08:31
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Oct 26, 2026
Base automatically changed from 10-26-fix_formatter_keep_fill_layout_for_array_with_comment_after_ to main October 26, 2026 08:36
@graphite-app
graphite-app Bot merged commit 8d86bd2 into main Oct 26, 2026
35 checks passed
@graphite-app
graphite-app Bot deleted the 10-26-refactor_formatter_treat_a_sibling_starting_at_the_enclosing_end_as_outside_for_trailing_comments branch October 26, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-formatter Area - Formatter (oxfmt). Add F-* labels for details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant