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

[MAC/Linux]The intellisense list doesn't contain "custom", after building the project

Open Yuyue960724 opened this issue 3 years ago • 3 comments

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

Testcases Affected

[6.0] SimpleWebAppRazorEditingWithVSCode

Platform

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

Repro Steps

  1. Open a normal Terminal Emulator
  2. Create mvc project and open it using VS code
mkdir MVC
cd MVC
dotnet new mvc
code .
  1. Install latest C# from: https://github.com/OmniSharp/omnisharp-vscode/releases
  2. After the C# load the project.
  3. In _Layout.cshtml,type@addTagHelper *, Microsoft.AspNetCore.Mvc.TagsHelpers, Save the change
  4. In VS Code, using CTRL + ~ to open up TERMINAL window, type the following code
touch CustomTagHelper.cs
vi CustomTagHelper.cs
  1. Edit the file: press Insert in keyboard > add below code > press ESC in keyboard > input :wq to save file.
 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Threading.Tasks;

 namespace MVC
 {
     public class CustomTagHelper
     {
     }
 }
  1. In CustomTagHelper.cs, type ": TagHelper" following the class. And then select "using Microsoft.AspNetCore.Razor.TagHelpers" through the Quick Actions. Save the change.
  2. In _Layout.cshtml, type "@addTagHelper *, MVC" .
  3. In <body>, type "<custom".

Note: 1.This issue not repro on Windows 2. This issue repro on MAC 3. Reopen VSCode, the intellisense list contain "custom".

Actual Result

custom

Yuyue960724 avatar Mar 23 '21 01:03 Yuyue960724

When the installed C# Extensions is v1.23.12, this issue also repro on Windows OS.

v-sherryfan avatar May 21 '21 06:05 v-sherryfan

The issue could reproduce on windows and linux with .NET 6.0 RC2(6.0.100-rc..21473.26)

v-cazhang avatar Sep 26 '21 09:09 v-cazhang

The issue could reproduce on windows and linux with .NET RTM (6.0.100-rtm.21513.37)

Serena01 avatar Oct 14 '21 09:10 Serena01