X-Sharp / XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
Apache License 2.0
114 stars 38 forks source link

Visual Studio - format document #1642

Open ecosSystem opened 3 days ago

ecosSystem commented 3 days ago

Format document does not work in VS 2022 when defines are involved. Typing the code is ok, but if you format the whole document (Ctrl-K, Ctrl-D) nothing is indented. If the defines are commented out all works fine. Region / Endregion doesn't help...

// STATIC DEFINE TEST   := 100``

FUNCTION TEST()

WHILE(TRUE)
    sleep(100)
ENDDO

RETURN 
STATIC DEFINE TEST  := 100

FUNCTION TEST()

WHILE(TRUE)
sleep(100)
ENDDO

RETURN 
RobertvanderHulst commented 3 days ago

X# version?

ecosSystem commented 3 days ago

2.21.0.5 :)