Skip to content

Conversation

@ljunkie
Copy link
Member

@ljunkie ljunkie commented Nov 30, 2025

No description provided.

@ljunkie ljunkie self-assigned this Nov 30, 2025
Copilot AI review requested due to automatic review settings November 30, 2025 00:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents the MultiLineItemFormatter from reformatting lines that contain multiple types of unbalanced opening brackets/braces on the same line (e.g., [m, { where both [ and { remain open).

Key changes:

  • Added isMultiUnbalancedOpenClosePair method to detect when both square brackets and curly braces have unbalanced opening counts on a single line
  • Integrated this check into the formatting condition chain to skip reformatting in such cases
  • Added explicit return false statement at the end of isMatchingDoubleArrayOrArrayCurly method

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/formatters/MultiLineItemFormatter.ts Added new method isMultiUnbalancedOpenClosePair to detect multiple unbalanced bracket/brace pairs on same line, integrated it into the formatting condition, and added explicit return statement to isMatchingDoubleArrayOrArrayCurly
src/formatters/MultiLineItemFormatter.spec.ts Added test cases for the new functionality and pre-existing isMatchingDoubleArrayOrArrayCurly behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 30, 2025 00:59
@ljunkie ljunkie force-pushed the rob/style-format-multi-unbalanced branch from 95dddbb to 90f97ed Compare November 30, 2025 01:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ljunkie ljunkie merged commit ffb20c6 into xelp/main Nov 30, 2025
8 checks passed
@ljunkie ljunkie deleted the rob/style-format-multi-unbalanced branch November 30, 2025 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants