VSIX Extension for navigating to a public handler for the variable under the cursor
This initial version solves a particular issue that Visual Studio does not offer: A way to navigate from a _mediator.Send(something)
call to its corresponding Handle(something)
method.
The aim of this repository, however, is to reach a state where you can navigate to any public API that utilizes the variable type under the cursor, not only Mediator Handlers.
To use the extension, place your cursor on the variable or declaration whose handler you want to find. Then, you can access the Navigate to Handler command in one of two ways:
- From the Edit menu in the top toolbar.
- By right-clicking and selecting Navigate to Handler from the context menu.
The extension will then locate and open the corresponding handler class automatically.
TIP
It is advised to provide a keyboard shortcut to the command. I've selected CTRL+ALT+H for mine.
If there is more than one match, an Output Window named Public Handler Results
will display each match, allowing you to double-click to navigate to that handler.
The project uses the solution TestNavigateToHandler for verification.
I am still working on generic type support, as it is not functioning properly. Any help provided is greatly appreciated