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

Format document problem with attributes #1659

Open
cpyrgas opened this issue Dec 24, 2024 · 0 comments
Open

Format document problem with attributes #1659

cpyrgas opened this issue Dec 24, 2024 · 0 comments

Comments

@cpyrgas
Copy link

cpyrgas commented Dec 24, 2024

If you have this code:

PROCEDURE Test()
LOCAL n AS INT

[STAThread];
FUNCTION Start() AS VOID
LOCAL n AS INT
RETURN

and choose format document, it ends up as

PROCEDURE Test()
    LOCAL n AS INT
    
    [STAThread];
FUNCTION Start() AS VOID
    LOCAL n AS INT
    RETURN

If, without making any change, do a Format Document right again, it changes to (FUNCTION line gets 2 tabs compared to before):

PROCEDURE Test()
    LOCAL n AS INT
    
    [STAThread];
        FUNCTION Start() AS VOID
    LOCAL n AS INT
    RETURN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants