Hey there,
I'm writing a VS package for VS 2010 and above.
Here's a simple project which reproduces my issue and what I try to achieve:
Basically, I create:
- A custom project type (myproj) using the MPF
- A classifier for a custom language MyScript
- A language info for the language MyScript
The tricky thing is that I need for my script language to use the .js extension.
So I can neither use:
[ProvideLanguageExtension(typeof(MyScriptLanguageInfo), ".js")]
nor
[Export] [FileExtension(".js")] [ContentType(MyScriptContentType)] internal static FileExtensionToContentTypeDefinition MyScriptFileExtensionDefinition;
because either of those will override and break the default handling of .js files outside of .myproj projects.
To sum up, I want the MyScript classifier to be used for .js files inside .myproj project files, and that it doesn't interfere with the normal JavaScript handling outside of .myproj projects.
I have the feeling that I'm not that far away in the repro and that it has something to do with my editor factory. Currently it won't use my classifier inside my project, despite me trying to use my custom EditorFactory on my custom project.
I'd love if someone could have a look at the repro (it contains the MyScript solution and a sample myproj, I made it super easy to try) and provide some guidance.
Thanks!