omnisharp-roslyn
omnisharp-roslyn copied to clipboard
[MAC/Linux]The intellisense list doesn't contain "custom", after building the project
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
- Open a normal Terminal Emulator
- Create mvc project and open it using VS code
mkdir MVC
cd MVC
dotnet new mvc
code .
- Install latest C# from: https://github.com/OmniSharp/omnisharp-vscode/releases
- After the C# load the project.
- In
_Layout.cshtml
,type@addTagHelper *, Microsoft.AspNetCore.Mvc.TagsHelpers
, Save the change - In VS Code, using CTRL + ~ to open up TERMINAL window, type the following code
touch CustomTagHelper.cs
vi CustomTagHelper.cs
- 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
{
}
}
- In
CustomTagHelper.cs
, type ": TagHelper" following the class. And then select "using Microsoft.AspNetCore.Razor.TagHelpers" through the Quick Actions. Save the change. - In
_Layout.cshtml
, type "@addTagHelper *, MVC" . - 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
When the installed C# Extensions is v1.23.12, this issue also repro on Windows OS.
The issue could reproduce on windows and linux with .NET 6.0 RC2(6.0.100-rc..21473.26)
The issue could reproduce on windows and linux with .NET RTM (6.0.100-rtm.21513.37)