locked
Register for IVsRefactorNotify ? RRS feed

  • Question

  • Hi, I'm new to VSX but have a managed language service registering and functioning (mostly).  One thing I need to do is to register to receive refactor events with the IVsRefactorNotify interface.  How exactly do I register for that?  Is it an attribute on my Package class and something that's done as part of regpkg?  I've searched through the documentation but can't figure out what I need to do.  I'd like to receive refactor notification for C# or VB.NET code.

    Thanks!
    Friday, August 15, 2008 6:50 PM

Answers

  • Based on my research, this interface is not designed to be called by our code. It is designed to be implemented by a managed language service. So it is only used to notify Visual Studio by your language service.

    I'd like to receive refactor notification for C# or VB.NET code.
    We have not expose such an mechanism can let you achieved this, and VB.net does not have re-factoring feature.

    You can also check out How to implement Refactor like Rename operation related to this issue.

    Thanks!

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Proposed as answer by Feng Chen Monday, August 18, 2008 4:35 AM
    • Edited by Feng Chen Monday, August 18, 2008 4:35 AM Add a reference.
    • Marked as answer by Feng Chen Thursday, August 21, 2008 3:49 AM
    Monday, August 18, 2008 4:35 AM