-
Notifications
You must be signed in to change notification settings - Fork 0
Labels
Description
When placing the cursor inside a text block that contains injected SQL in a Java file and executing "Reformat Code", the formatting of the injected content breaks.
Only the PreProcessor logic appears to be applied, and the expected full formatting is not performed.
Before:
@Select
@Sql("""
SELECT * FROM a
""")
Emp selectInjection5();
Formatted:
@Select
@Sql("""
SELECT *
FROM a
""")
Emp selectInjection5();However, if the cursor is placed outside the text block (e.g., in the surrounding Java code), and the file is formatted, this issue does not occur — the injected SQL is formatted correctly as intended.
This suggests that the formatter behavior differs based on cursor position, and the full formatter is not triggered properly when invoked from inside the injected content.