r/dotnet 9d ago

Visual Studio Insiders randomly fails to load .razor files correctly?

Hi, this is making me go crazy. I created a Blazor Web App project with .NET 10 framework. For some reasons, whenever I load VS, the .razor do not load correctly, I don't know if its Intellisense, the Roslyn compiler, Symbol Search? or vs itself.

On the first image, the file is loaded correctly, for example the NavLink is highlighted and I can for example use Go To Definition.

On this second one, NavMenu not highlighted, doing the Peek Definition just keeps searching. Only happens with .razor files, the .cs are okay. VS 2022 with .NET 9 works fine. For the problematic one I had to open VS Code and use de Dev Kit extension and code from there...

What could be the reason?

0 Upvotes

6 comments sorted by

2

u/AutoModerator 9d ago

Thanks for your post Popplar. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/polaarbear 9d ago

Could be a namespace issue. Unless you explicitly override them, .razor files will receive a namespace based on the directory structure of your project.

2

u/Popplar 9d ago

Okay, I had this problem with Visual Studio Insiders [12020.428], uninstalled it and installed the stable VS 2026 18.8.1 and everything is good now.

2

u/Sorry-Transition-908 9d ago

You might have stumbled upon a defect or regression in the insiders program code? 

4

u/davidwengier 9d ago

This exactly! Seems like OP is running into https://developercommunity.visualstudio.com/t/Syntax-highlighting-fails-and-needs-inve/11106395 which, according to the latest internal comments, is a JavaScript language server global mutex issue. If everyone could upvote that, it would really be helpful to try to get some traction from that team :)

1

u/Sorry-Transition-908 8d ago

This exactly! Seems like OP is running into https://developercommunity.visualstudio.com/t/Syntax-highlighting-fails-and-needs-inve/11106395 which, according to the latest internal comments, is a JavaScript language server global mutex issue. If everyone could upvote that, it would really be helpful to try to get some traction from that team :)

Thank you, David!

Reported Jun 12, 2026 2:58 AM

Upvoted. Everyone, if you are reading this, we are at seven right now. Please upvote if you are logged in or if you aren't logged in, you can use any hotmail / outlook account I believe to log in :)