diff --git a/ILSpy/Commands/SelectPdbContextMenuEntry.cs b/ILSpy/Commands/SelectPdbContextMenuEntry.cs index 38c5d970a..be9597b75 100644 --- a/ILSpy/Commands/SelectPdbContextMenuEntry.cs +++ b/ILSpy/Commands/SelectPdbContextMenuEntry.cs @@ -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 using (context.TreeView.LockUpdates()) { - assembly.LoadDebugInfo(dlg.FileName); + await assembly.LoadDebugInfo(dlg.FileName); } MainWindow.Instance.SelectNode(MainWindow.Instance.FindNodeByPath(new[] { assembly.FileName }, true));