Hi,
I'm writing a package that can open an .SQL file programmatically from the IDE for the user. The .SQL file correspond to a hierarchy node that resides in my package's hierarchy. For that, I use the standard IVsUIShellOpenDocument.OpenStandardEditor method with Guid.Empty as the logical view.
It used to work fine with Visual Studio 2008 and 2010. But now with Visual Studio 2012 (Version is 11.0.60315.01 Update 2), either it doesn't work, the screen may be blank, or completely black, or it Visual Studio just crashes, also when I use the new "preview" feature of Visual Studio 2012.
When it crashes, it's because of a .NET StackOverflowException. Here is the stack when debugged from another Visual Studio:
It seems like a bug to me? Right now, I use OpenSpecificEditor with VSConstants.GUID_TextEditorFactory as the editor and VSConstants.LOGVIEWID_Code as the logical view for a workaround, but I'd like to use the standard SQL Server editor.
Note when I use the LOGVIEWID_UserChooseView logical view, it also fails if I select the default "Microsoft SQL Server Data Tools, Editor Selector".
Simon Mourier