We have rebuilt our plugin for R#9.1 EAP (following your suggestions from the "Guidance for 9.1 EAP" thread).
When installing our plugin and restarting Visual Studio the ReSharper menu is still visible. However, once I click the ReSharper menu (where our plugin adds an Action), our Action does not show up. We have some code in the "Update" method of the action to determine whether it should be visible. It could be that in 9.1 EAP, our plugin is not performing the detection correctly and makes the presentation invisible (we would love to debug this).
However... When we shutdown our Visual Studio Experimental Hyve and open it again, the whole ReSharper menu is not available. This means that we cannot debug our action code because the "Update" method will never get called.
We have confirmed that our plugin is loaded correctly because the debugger hits breakpoints in our SolutionComponents.
I'm expecting we have an issue with our ActionGroup and Action annotations. Did something change there in R#9.1 EAP?
Our ActionGroup is:
[ActionGroup("Recorder", ActionGroupInsertStyles.Separated, Id = 90213)]
public class RecorderActionGroup : IAction, IInsertLast<VsMainMenuGroup>
{
public RecorderActionGroup(ArchiveFilesActionHandler archiveAction)
{
}
}
Our Action is:
[Action("OurNameSpace.ArchiveFiles", "Archive Files", Id = 90210)]
public class ArchiveFilesActionHandler : IExecutableAction
{
public bool Update(IDataContext context, ActionPresentation presentation, DelegateUpdate nextUpdate)
{
presentation.Visible = context.GetData(DataConstants.SOLUTION) != null; // We have slightly different code here... We also get a SolutionComponent and check some Property there.
return presentation.Visible || (nextUpdate != null && nextUpdate());
}
public void Execute(IDataContext context, DelegateExecute nextExecute)
{
// Do our stuff
}
}