Answered Go To Definiton feature using Mef editor extension

  • Tuesday, August 07, 2012 12:58 PM
     
     

    Hello,

    I try to add some basic features to my editor extension using MEF.

    Those features are Go To Definition(F12)/Comment(Ctrl E+C) Uncomment and maybe others. Is there a way to do this using MEF ?

    Thanks


All Replies

  • Tuesday, August 07, 2012 10:23 PM
    Moderator
     
     

    I am confused by what you mean exactly. Those features are built into the editor already, why would you need to 'add them to your editor extension'?  If you just mean general command contribution, no, there is no way to do that via MEF. MEF based extensibility in VS is really only the editor.

    Ryan

  • Wednesday, August 08, 2012 5:46 AM
     
     

    Got my own language, not c# or vb based. So i suppose i have to implement it myself.

    If not possible, is there a way a to it simply using MPF ? I've got already a MPF package in my solution for some stuff, but most of the work remain in my MEF Editor extension.

    Thanks

  • Thursday, September 06, 2012 9:13 AM
     
     Answered
    I found the solution, but this make a duplicate post, cause in this one there is the solution for Comment/Uncomment and GotoDefinition feature