I'm working on an ASP.NET Core MVC project in Visual Studio 2022.
Lately, I keep seeing these warning messages at the top of the editor:
- Feature 'Razor Diagnostics Feature' is currently unavailable due to an internal error.
- Feature 'Razor InlayHint Feature' is currently unavailable due to an internal error.
- Feature 'Razor LinkedEditingRange Feature' is currently unavailable due to an internal error.
They appear every time I open a .cshtml file, and it’s very annoying.
I just want to turn them off completely (I don’t need those Razor IntelliSense features).
I've already tried:
- Resetting Visual Studio settings
- Clearing ComponentModelCache
- Searching in
Tools → Options → Text Editor → Razor, but couldn’t find any option related to "diagnostics" or "inlay hints"
How can I completely disable these Razor features or prevent these warnings from showing up?
What I tried:
- Disabled IntelliSense for Razor files in Tools → Options → Text Editor → Razor
- Cleared ComponentModelCache folder
- Reset all Visual Studio settings
What I expected:
The warning messages ("Razor Diagnostics Feature is currently unavailable...") would disappear completely when editing .cshtml files.
What actually happened:
The pink bar and warning messages still appear every time I open a Razor file.