Open jeroldhaas opened 8 years ago
Thanks for reporting the issue. Spade currently works based on the EnvDTE FileCodeModel's, and after some debugging I've confirmed that no FileCodeModel appears to be available for Razor code. Since the IDE isn't exposing an API object we can work with, the result is an empty Spade. This is effectively the same as opening a raw text file.
It's possible that the Roslyn API may expose C# code models for Razor objects, but I'm not sure. Switching to a Roslyn API is on our roadmap, but is a fairly large effort. We can keep this issue for investigation to add support for Razor files once Roslyn is utilized within CodeMaid.
Environment
Description
Replace this text with a short description and code sample.
Steps to recreate
@function {}
(like a helper file)public static
methods in file don't displayCurrent behavior
It's not parsing / locating the static methods in the
@function
block, Spade is empty.Expected behavior
Display parsed static class and its contained methods in Razor file, including normal Spade functionality.