Skip to content

Commit 7a0a2b1

Browse files
Add "Go To Definition" on double click
1 parent e574bc2 commit 7a0a2b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ILSpy/ViewModels/CompareViewModel.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ namespace ICSharpCode.ILSpy.ViewModels
4242
using ICSharpCode.ILSpy.Commands;
4343
using ICSharpCode.ILSpy.TreeNodes;
4444
using ICSharpCode.ILSpy.Views;
45+
using ICSharpCode.ILSpyX.TreeView.PlatformAbstractions;
4546

4647
class CompareViewModel : ObservableObject
4748
{
@@ -611,6 +612,12 @@ public override void Decompile(Language language, ITextOutput output, Decompilat
611612
{
612613
}
613614

615+
public override void ActivateItem(IPlatformRoutedEventArgs e)
616+
{
617+
var node = AssemblyTreeModel.FindTreeNode(entry.Entity);
618+
AssemblyTreeModel.SelectNode(node);
619+
}
620+
614621
public override FilterResult Filter(LanguageSettings settings)
615622
{
616623
return compareViewModel.ShowIdentical || entry.RecursiveKind != DiffKind.None ? FilterResult.Match : FilterResult.Hidden;

0 commit comments

Comments
 (0)