Skip to content

Conversation

@xterao
Copy link
Collaborator

@xterao xterao commented Aug 25, 2025

Description:

This pull request addresses two issues:

  • Injected SQL Indentation Fix:
    Resolved a bug where unnecessary spaces were added when formatting code containing SQL injected via the @SQL annotation. The formatting logic has been updated to ensure proper indentation without extra spaces.

  • Correct Java Indent Size Retrieval:
    Fixed an issue where the indent size was not correctly retrieved from the Java code style settings. The process now explicitly specifies a Java file to obtain the correct indent size as configured in the Java code style settings screen.

@github-actions github-actions bot added the fix Bug fixes label Aug 25, 2025
@xterao xterao linked an issue Aug 25, 2025 that may be closed by this pull request
@xterao xterao requested a review from Copilot August 25, 2025 05:53
@xterao xterao self-assigned this Aug 25, 2025
Copy link
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@xterao xterao requested a review from Copilot August 25, 2025 06:47
Copy link
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@xterao xterao merged commit 46e624d into main Aug 26, 2025
5 checks passed
@xterao xterao deleted the fix/sql-annotation-format-indent-space branch August 26, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect Indentation When Formatting Injected SQL

2 participants