|
|
|
@ -29,7 +29,7 @@ namespace ICSharpCode.ILSpy
@@ -29,7 +29,7 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
[ExportContextMenuEntry(Header = nameof(Resources.SelectPDB))] |
|
|
|
|
class SelectPdbContextMenuEntry : IContextMenuEntry |
|
|
|
|
{ |
|
|
|
|
public void Execute(TextViewContext context) |
|
|
|
|
public async void Execute(TextViewContext context) |
|
|
|
|
{ |
|
|
|
|
var assembly = (context.SelectedTreeNodes?.FirstOrDefault() as AssemblyTreeNode)?.LoadedAssembly; |
|
|
|
|
if (assembly == null) |
|
|
|
@ -43,7 +43,7 @@ namespace ICSharpCode.ILSpy
@@ -43,7 +43,7 @@ namespace ICSharpCode.ILSpy
|
|
|
|
|
|
|
|
|
|
using (context.TreeView.LockUpdates()) |
|
|
|
|
{ |
|
|
|
|
assembly.LoadDebugInfo(dlg.FileName); |
|
|
|
|
await assembly.LoadDebugInfo(dlg.FileName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
MainWindow.Instance.SelectNode(MainWindow.Instance.FindNodeByPath(new[] { assembly.FileName }, true)); |
|
|
|
|