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
501 stars 191 forks source link

Close gaps in the complete set of available choices for Razor completion #9807

Open phil-allen-msft opened 9 months ago

phil-allen-msft commented 9 months ago

This issue tracks the "completeness" portion of having Razor completion.\

External:

Unable to repro:

Dean-NC commented 3 months ago

@phil-allen-msft I don't know if this is the right place to add this. I've submitted several similar intellisense issues for Razor files, but there's so many of these now, I don't know where to put them.

3 issues: This first video shows trying to use the asp-for attribute, and when using either the tab or enter key, it puts an invalid attribute in. Asp-For-Tab-Enter

The next video shows that for the same asp-for attribute, when typing a double quote it forces the first intellisense option and then puts the set of quotes, causing a syntax error. Asp-For-Quotes

The last video, similar to the previous one, same asp-for attribute, when typing the equal = character, causes the 1st hi-lighted intellisense choice to get forced (not 1st choice, but 1st choice it chose to hi-light). Asp-For-Equal