sboulema / CodeNav

Visual Studio extension to show the code structure of your current document
MIT License
125 stars 32 forks source link

Support for Razor Pages #114

Open SeriousM opened 3 years ago

SeriousM commented 3 years ago

Hi! This extension looks awesome and far more better than Resharpers File Structure window. But the support for cshtml / razor pages is missing. could you please enable them as well?

Thank you!

sboulema commented 3 years ago

Good suggestion!

Step 1 would be to find a way to parse the structure from the file. For C#/VB CodeNav uses https://www.nuget.org/packages/Microsoft.CodeAnalysis. So I would need a similar nuget package or method for Razor files...

This seems interesting/the way to go: https://stackoverflow.com/questions/28392086/getting-a-semanticmodel-of-a-cshtml-file