1

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?

Here's what it looks like

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.

1
  • 1
    Intellisense is concerned with code analysis in your code. So i do not think this is an intellisense specific problem. Intellisense gives you warnings about your code not about the code or workings from an executable or tool. developercommunity.visualstudio.com/t/… this seems to be a similar issue that is still being investigated. the more general issues here might give you more insight on which fix to use for your version: developercommunity.visualstudio.com/t/… Commented Oct 12 at 11:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.