omnisharp-roslyn icon indicating copy to clipboard operation
omnisharp-roslyn copied to clipboard

VS Code: Create blazor Server project without Intellisense after typing "@pro" in the index.razor file.

Open v-sherryfan opened this issue 2 years ago • 1 comments

REPRO CONFIGURATION: Win10 x64 ENU 20H2 + SDK 3.1.417 Latest SDK Version: 3.1.417 Latest Runtime Version: 3.1.23

INSTALL STEPS​:

  1. Clean machine: Win10 x64 ENU 20H2
  2. Install the sdk 3.1.417 from: \vsufile\patches\sign\NET\CORE_BUILDS\3.1.X\3.1.23\3.1.417-servicing-015911\signed\shipping\assets\Sdk\3.1.417-servicing-015911\dotnet-sdk-3.1.417-win-x64.exe
  3. Install C# Extensions version: v1.24.1.vsix from: https://github.com/OmniSharp/omnisharp-vscode/releases

Testcases Affected SimpleBlazorRazorEditingWithVSCode

Platform

  • [x] Windows
  • [x] macOS
  • [x] Linux

Repro Steps

  1. Open a normal Terminal Emulator
  2. Create mvc project and open it using VS code
md Blazor
cd Blazor
dotnet new blazorserver
code .
  1. Go to https://github.com/OmniSharp/omnisharp-vscode/releases > Download the csharp-1.24.1.vsix.
  2. In VS Code and go to the Extensions Tab, select "Install from VSIX" > install the file you downloaded.
  3. Open Pages/index.razor file, type "@pro", verify that completion is available for type "program" that exist in the project.

Note: 1. This issue works fine on C# Extensions is v1.24.0. 2. This issue also repro on SDK 5.0.406.

Actual Result image

Expected Result image

v-sherryfan avatar Feb 25 '22 09:02 v-sherryfan

There is a similar problem as follows. Actual: image Expected: image

v-sherryfan avatar Feb 25 '22 09:02 v-sherryfan