OmniSharp/omnisharp-roslyn

Section formatting issue in ASP.NET Razor view

mkorsukov opened this issue · 1 comments

There is a tiny formatting issue happening on section definition only.

Initial code:

@section Controls
{
  <label>
    <span>Office</span>
    // the rest of HTML

After the Format document command:

@section Controls
  {
  <label>
    <span>Office</span>
    // the rest of HTML

PS. The issue doesn't affect such blocks code like layout and code. So formatting remains the same.

@{
  Layout = "/Views/Acquisition/Layouts/MainLayout.cshtml";
}

@mkorsukov O# does not handle Razor files. Perhaps you meant to open an issue at https://github.com/dotnet/vscode-csharp/issues or https://github.com/dotnet/razor/issues