dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
500 stars 191 forks source link

VSCode: The format incorrect after type @using in razor file #4417

Open mkArtakMSFT opened 3 years ago

mkArtakMSFT commented 3 years ago

Issue moved from aspnet/AspNetCore-ManualTests#817


From @jinzhao1127 on Tuesday, August 10, 2021 9:55:21 AM

Azure DevOps work item: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1369654

Testcases Affected

[6.0] VerifyBlazorServerwithNoAuth

Platform

Repro Steps

  1. Run open up a normal Command Prompt (do not run as administrator)
  2. Create a folder and create an Blazor project in it:
     cd BlazorServer
     dotnet new blazorserver 
  3. Navigate to the folder you created Blazor and open VS Code using Terminal Emulator code .
  4. Download C# extension v1.23.15 from: https://github.com/OmniSharp/omnisharp-vscode/releases and Install it.
  5. In the root _Imports.razor file in the BlazorServer app add a @using statement, and type Enter key for using in the completion list.

Note:

  1. It reproes on Linux/ Mac .
  2. It also reproes on C# Extension v1.23.14 +6.0 RC!

Actual Result

The format incorrect after type @using in razor file. image

Expected Result image

Error Log

mkArtakMSFT commented 3 years ago

Issue moved from aspnet/AspNetCore-ManualTests#817


From @mkArtakMSFT on Tuesday, August 10, 2021 4:26:52 PM

@NTaylorMullen how would you like to track this?