I'm writing a ReSharper plugin for the Spark View Engine and I need to be able to detect the type of file I'm on.
Example, if I'm on a .spark file I want to be able to perform some actions. If I'm on any other file type I want to perform some other action.
How can I do this? What libraries do I need to look into to perform this?