I've implemented a Visual Studio custom project type that includes an editor that provides a UI for editing a certain flavor of xml file that has an extension of ".etx". This UI works great, the problem is that occasionally there might be need to open the file and hand-edit the xml. I can do this with "Open with..." => XML (Text) Editor, which also works. The problem is that if I close the xml editor and reopen the .etx file, it opens in the xml editor, not in my custom UI editor. I can manually reopen it with the "Open With..." => "Type Definition XML (Default)" (my custom editor, which still claims to be the default), however, any time after I've opened it as XML the xml editor will be the default. This happens on a per file basis. So, if I have foo.etx and bar.etx, and I open foo.etx with the XML editor, and time I open foo.etx it will default to the xml, but bar.etx will still open with the custom editor UI. Any ideas why this might be happening?
Thanks, -Mark