Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting breaks in a block after an if expression with expressionFormattingLogicalLocation="New" #353

Open
gustason opened this issue Mar 7, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gustason
Copy link
Collaborator

gustason commented Mar 7, 2025

For example,

/* formatterSettingsOverride */
/*  { "AblFormatter.ifFormatting": true,
        "AblFormatter.assignFormatting": true,
        "AblFormatter.expressionFormatting": true,
        "AblFormatter.expressionFormattingLogicalLocation": "New"}*/
IF NOT AVAILABLE DICTDB THEN DO TRANSACTION:

    IF mss_username <> ? AND  mss_username <> "" THEN message "A".

            message "a".

            ASSIGN
        c = c + " " + mss_conparms
        .
END.

``` abl
 

gets formatted correctly the first time:

IF NOT AVAILABLE DICTDB THEN DO TRANSACTION:

    IF mss_username <> ? AND
       mss_username <> "" THEN message "A".

    message "a".

    ASSIGN
        c = c + " " + mss_conparms
        .
END.

reformatting again:

IF NOT AVAILABLE DICTDB THEN DO TRANSACTION:

    IF mss_username <> ? AND
       mss_username <> "" THEN message "A".

    message "a".
    
        ASSIGN
    c = c + " " + mss_conparms
    .
END.
@gustason gustason added the bug Something isn't working label Mar 7, 2025
@gustason gustason self-assigned this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant