Register GoToHandlerAction as a keyboard-assignable VS/ReSharper command with Alt+H default#108
Register GoToHandlerAction as a keyboard-assignable VS/ReSharper command with Alt+H default#108
Conversation
|
@copilot Have you found any issues related to the problem described? |
Register GoToHandlerAction as a VS/ReSharper IExecutableAction with [Action] attribute, giving it a default keyboard shortcut of Alt+H with ShortcutScope.TextEditor. This makes the action discoverable in Tools > Options > Environment > Keyboard and allows users to invoke "Go to Handler" via keyboard shortcut. Agent-Logs-Url: https://github.com/Octelys/mediator-plugin/sessions/327fae8f-5cf0-4735-846a-684624dc9296 Co-authored-by: kzryzstof <38137839+kzryzstof@users.noreply.github.com>
…tignore Agent-Logs-Url: https://github.com/Octelys/mediator-plugin/sessions/327fae8f-5cf0-4735-846a-684624dc9296 Co-authored-by: kzryzstof <38137839+kzryzstof@users.noreply.github.com>
Yes. The root cause was that the plugin had no registered VS/ReSharper command for "Go to Handler" at all. The keyboard shortcut in
The plugin had The fix adds |
Alt+Hwas intercepted by VS's Help menu andGoToHandlerActionwas invisible in Tools > Options > Environment > Keyboard because no VS/ReSharper command was ever registered — only a Riderplugin.xmlshortcut existed, which has no effect in Visual Studio.Changes
GoToHandlerNavigationAction— implementsIExecutableActiondecorated with[Action]:Update(): enables only when the cursor is on a supported MediatR/Mediator request identifierExecute(): delegates toHandlerSelector.NavigateToHandler()— same logic as the existing context-menu and navigate-from-here paths.gitignore: added.nuget/to exclude tooling binaries