Open With, sets the designer subtype and then prevents dsl tools opening again on double click

Locked Open With, sets the designer subtype and then prevents dsl tools opening again on double click

  • Friday, July 13, 2012 3:43 PM
     
     

    If I open a file within a solution by right clicking and choosing Open With -> XML Editor on a designer based file (for example .DSL) then visual studio will automatically change the project and insert a <subtype>Designer</subtype> against the item.

    As a result double clicking on the file will now always open in the xml editor regardless of which editor is set as default.

    Editing the project file and removing this extra subtype entry fixes the problem until you use open with again.

    This seems like a pretty big bug to me..

All Replies

  • Tuesday, July 31, 2012 11:43 AM
     
      Has Code
    A possible solution would be to change the moddelling tools projects to add the attribute
    [ProvideView(LogicalView.Designer, "")]
    To the EditorFactory