Skip to content

fix(formatter): should expand call arguments group when the argument will break#17254

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-22-fix_formatter_should_expand_call_arguments_group_when_the_argument_will_break
Dec 22, 2025
Merged

fix(formatter): should expand call arguments group when the argument will break#17254
graphite-app[bot] merged 1 commit intomainfrom
12-22-fix_formatter_should_expand_call_arguments_group_when_the_argument_will_break

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Dec 22, 2025

Fix an incorrect output that was found in #17252 (comment)

Biome has the same incorrect output and ended up fixing it by aligning the Prettier implementation.

Copy link
Member Author

Dunqing commented Dec 22, 2025

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 22, 2025

CodSpeed Performance Report

Merging #17254 will not alter performance

Comparing 12-22-fix_formatter_should_expand_call_arguments_group_when_the_argument_will_break (95782ac) with 12-22-fix_formatter_wrongly_added_an_indentation_for_an_union_type_when_there_is_a_leading_line_comment (39a5ee2)

Summary

✅ 38 untouched
⏩ 7 skipped1

Footnotes

  1. 7 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.

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 22, 2025

Merge activity

graphite-app bot pushed a commit that referenced this pull request Dec 22, 2025
…here is a leading line comment (#17252)

close: #16902

The case below's output is incorrect, but it's not related to this issue, and was fixed in #17254
Input
```ts
console.log(
  <
    // comment
    string | number | undefined
  >0
);
```
Expect output:
```ts
console.log(
  <
    // comment
    string | number | undefined
  >0
);
```

Actual output
```ts
console.log(<
    // comment
    string | number | undefined
  >0);
```
@graphite-app graphite-app bot force-pushed the 12-22-fix_formatter_wrongly_added_an_indentation_for_an_union_type_when_there_is_a_leading_line_comment branch from 39a5ee2 to def4ec1 Compare December 22, 2025 09:06
@graphite-app graphite-app bot force-pushed the 12-22-fix_formatter_should_expand_call_arguments_group_when_the_argument_will_break branch from 95782ac to c83f90c Compare December 22, 2025 09:07
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 22, 2025
Base automatically changed from 12-22-fix_formatter_wrongly_added_an_indentation_for_an_union_type_when_there_is_a_leading_line_comment to main December 22, 2025 09:17
@graphite-app graphite-app bot merged commit c83f90c into main Dec 22, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 12-22-fix_formatter_should_expand_call_arguments_group_when_the_argument_will_break branch December 22, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-formatter Area - Formatter C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant