razor
razor copied to clipboard
Prefer tag helper completion over html tag
Version used: VS 2022 v17.3 Preview 2
To reproduce:
- Create "ASP.NET Core Web App"
- Go to
Index.cshtmlpage - Start typing
<scrip
Expected behavior:
Only tag helper script completion is in the list
Actual behavior:
There are both tag helper and html attribute completions:

Additional context: https://github.com/dotnet/razor-tooling/issues/6583 needs to be fixed before this one
This is a bit more complicated in the general case. For script you're mostly correct (though we would argue that it ought to be the html instead of the TagHelper offered) but there are more complicated scenarios related to upper-case and more complex TagHelpers.