- I created a new custom Rider plugin using the template found at https://github.com/JetBrains/resharper-rider-plugin.
- I added a new custom action like:
[Action("ActionShowMessageBox", "Show message box", Id = 5432144)]
public class ActionShowMessageBox : IExecutableAction, IInsertLast<ToolsMenu>{
public bool Update(IDataContext context, ActionPresentation presentation, DelegateUpdate nextUpdate) => true;
public void Execute(IDataContext context, DelegateExecute nextExecute){
var solution = context.GetData(JetBrains.ProjectModel.DataContext.ProjectModelDataConstants.SOLUTION);
MessageBox.ShowInfo(solution?.SolutionFile != null
? $"{solution.SolutionFile?.Name} solution is opened"
: "No solution is opened");
}
}
- I hit
F5 to debug open a project and then i search for my action using Ctrl+Shift+A. My action is not listed there nor displayed in the ToolsMenu as per declaration.
