You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For C#, after formatting with Omnisharp installed, the #region and #endregion statements are indented at the same level of enclosing code. But #if and #endif are formatted to have no indentation, thus messing with folding when #if/#endif enclosing code is nested.
I don't know if this is Omnisharp or VSCode problem.
Steps to Reproduce:
Apply formatting to following code
public static class Main
{
public static int Foo(int x)
{
x = 5;
#if false
x++;
#endif
return x;
}
}
After formatting it looks like this:
public static class Main
{
public static int Foo(int x)
{
x = 5;
#if false
x++;
#endif
return x;
}
}
This messes with folding of entire code!!
Does this issue occur when all extensions are disabled?: Yes/No
The text was updated successfully, but these errors were encountered:
For C#, after formatting with Omnisharp installed, the #region and #endregion statements are indented at the same level of enclosing code. But #if and #endif are formatted to have no indentation, thus messing with folding when #if/#endif enclosing code is nested.
I don't know if this is Omnisharp or VSCode problem.
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes/No
The text was updated successfully, but these errors were encountered: