Skip to content

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

@mkArtakMSFT

Description

@mkArtakMSFT

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

  • Windows
  • macOS
  • Linux

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 
  1. Navigate to the folder you created Blazor and open VS Code using Terminal Emulator
    code .
  2. Download C# extension v1.23.15 from: https://github.com/OmniSharp/omnisharp-vscode/releases and Install it.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions