From 8b56eaa473fb045547bce4a6757acba8d16878b7 Mon Sep 17 00:00:00 2001 From: Andreas Weizel Date: Sun, 3 Jun 2018 12:16:27 +0200 Subject: [PATCH] Fix: Add-in has passed the wrong name to ILSpy for generic types. --- ILSpy.AddIn/Commands/OpenCodeItemCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs b/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs index 3119d4605..d8f14cc25 100644 --- a/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs +++ b/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs @@ -93,7 +93,8 @@ namespace ICSharpCode.ILSpy.AddIn.Commands } var refs = refsmap.Select(fn => fn.Value).Where(f => File.Exists(f)); - OpenAssembliesInILSpy(new ILSpyParameters(refs, "/navigateTo:" + symbol.GetDocumentationCommentId())); + OpenAssembliesInILSpy(new ILSpyParameters(refs, "/navigateTo:" + + (symbol.OriginalDefinition ?? symbol).GetDocumentationCommentId())); } ISymbol GetSymbolResolvableByILSpy(SemanticModel model, SyntaxNode node)