From 3f22e62a8807909f21d2b5d412dd38e6598f7198 Mon Sep 17 00:00:00 2001 From: yggy Date: Mon, 18 Apr 2016 18:02:07 -0700 Subject: [PATCH] #694 Add an "Open in ILSpy" option to the context menu in the code window 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") --- ILSpy.AddIn/ILSpyAddIn.vsct | 14 +++++ ILSpy.AddIn/ILSpyAddInPackage.cs | 87 ++++++++++++++++++++++++++++++-- ILSpy.AddIn/PkgCmdID.cs | 1 + ILSpy.AddIn/Utils.cs | 4 ++ 4 files changed, 102 insertions(+), 4 deletions(-) diff --git a/ILSpy.AddIn/ILSpyAddIn.vsct b/ILSpy.AddIn/ILSpyAddIn.vsct index 69af34274..0105c1a53 100644 --- a/ILSpy.AddIn/ILSpyAddIn.vsct +++ b/ILSpy.AddIn/ILSpyAddIn.vsct @@ -47,6 +47,10 @@ + + + + @@ -77,6 +81,14 @@ + +