Skip to content

Commit 2a4f5c1

Browse files
committed
Update line endings in FormatCode method and add new ixc_data profile in launchSettings
1 parent a4fbfd3 commit 2a4f5c1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/AXSharp.compiler/src/AXSharp.Cs.Compiler/Helpers/CsFormatting.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ internal static class CsFormatting
1414
{
1515
public static string FormatCode(this string code)
1616
{
17-
return CSharpSyntaxTree.ParseText(code).GetRoot().NormalizeWhitespace().SyntaxTree.GetText().ToString();
17+
return CSharpSyntaxTree.ParseText(code).GetRoot().NormalizeWhitespace(eol:"\n").SyntaxTree.GetText().ToString();
1818
}
1919
}

src/AXSharp.compiler/src/ixc/Properties/launchSettings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
"axopen-traversal-in-tepmplates": {
7070
"commandName": "Project",
7171
"workingDirectory": "C:\\W\\Develop\\gh\\inxton\\simatic-ax\\axopen.templates\\axopen\\src\\traversals\\apax"
72+
},
73+
"ixc_data": {
74+
"commandName": "Project",
75+
"workingDirectory": "D:\\github\\Inxton\\axopen\\src\\data\\tests\\AXOpen.Data.Tests_L1\\ax"
7276
}
7377
}
7478
}

0 commit comments

Comments
 (0)