dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.37k stars 9.99k forks source link

Blazor IntelliSense in Visual Studio 2022 #37709

Closed vsfeedback closed 3 years ago

vsfeedback commented 3 years ago

This issue has been moved from a ticket on Developer Community.


[2021-10-07.png] (https://aka.ms/dc/file?name=Be32aed3593c34091bdf505e84ed7c38c637692111404328727_2021-10-07.png&tid=e32aed3593c34091bdf505e84ed7c38c637692111404328727)

Blazor IntelliSense is slow or needs a build action to render suggestions correctly.

Repro steps:

  1. Create a field on a component (in this case, EditContext editContext
  2. Create an EditForm component and begin to populate EditContext attribute.
  3. editContext variable does not show in list of possibilities
  4. Manually type in editContext results in way red underline indicating error. Error output says var does not exist.
  5. Build. Errors disappear.

Original Comments

Feedback Bot on 10/7/2021, 08:28 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

mkArtakMSFT commented 3 years ago

Comment from @NTaylorMullen: moving over to the compiler. The reason why this user is not getting C# completion for their edit context is because the compiler is not handling the partial HTML tag correctly and nuking the remaining of the document (the portion of the document that contains the editContext C#).

TanayParikh commented 3 years ago

Thanks for reporting, closing as duplicate of dotnet/razor-tooling#7055.