razor icon indicating copy to clipboard operation
razor copied to clipboard

Prefer tag helper completion over html tag

Open DoctorKrolic opened this issue 3 years ago • 1 comments

Version used: VS 2022 v17.3 Preview 2

To reproduce:

  1. Create "ASP.NET Core Web App"
  2. Go to Index.cshtml page
  3. 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: jZFwqQvFDW

Additional context: https://github.com/dotnet/razor-tooling/issues/6583 needs to be fixed before this one

DoctorKrolic avatar Jul 12 '22 16:07 DoctorKrolic

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.

ryanbrandenburg avatar Jul 14 '22 21:07 ryanbrandenburg