Rearranged some of the helper methods for opening things in ILSpy.
Added methods to open Project and CodeItem in ILSpy.
Had hoped the latter would help with opening from Call Stack, but can't see how procedurally access the call stack window.
Asked how to do so here: http://stackoverflow.com/questions/36726595/how-to-get-a-programmable-interface-to-the-visual-studio-call-stack-window
"Open code in ILSpy" now works for:
- classes, interfaces and structs (generic or not, nested or not)
- enums
- fields and properties
- constructors (generic or not)
- overloaded constructors, unless they are generic or use type parameters of their generic class
- methods (generic or not)
- overloaded methods, unless they are generic or use type parameters of their generic class
TODO: disambiguate overloaded generic constructors and methods
https://github.com/icsharpcode/ILSpy/issues/694
Supports methods, enums, delegates, properties, interfaces, events and classes.
TODO: disambiguate overloaded methods by number and type of parameters
Changes (only) to ILSpy.AddIn project:
add: code window context menu item "Open code in ILSpy"
add: OpenCodeItemInILSpyCallback does the work, using Visual Studio code model to interrogate source at selection point
change: add additional argument support to OpenAssemblyInILSpy (to support "/navigateTo")