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.
I have the feeling that I'm not that far away and that it has something to do with my editor factory.
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!