Open AlekseyTs opened 3 years ago
Don't have exact repro steps, but I've also seen Then
added to condition of a regular IF
statement without a space in between. Initially that was a C# code pasted into VB, lots of error around it, and, while I was editing code to fix them up, Then
was added.
I believe the proposed resolution is to not run the Code Cleanup features of line commit if the file contains syntax errors.
I see nothing wrong in addition of Then
in these scenarios, but it should be added with a space before it.
Paste the following code in VB type.
Observed:
Note, conditional compilation directive is changed to
#if DEBUGThen
. Expected#if DEBUG Then
.Also, if I position the cursor at the end of
#if DEBUGThen
and press enter, the result is the following:The space is missing and
#End If
is added. This is unexpected,#End If
is already present and shouldn't be added.