CodeNav icon indicating copy to clipboard operation
CodeNav copied to clipboard

Support for Razor Pages

Open SeriousM opened this issue 4 years ago • 1 comments

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!

SeriousM avatar Jul 16 '21 07:07 SeriousM

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

sboulema avatar Aug 04 '21 11:08 sboulema