Browse Source

Fix async warning LoadDebugInfo

pull/2221/head v7.0-preview1
Siegfried Pammer 5 years ago
parent
commit
004948210c
  1. 4
      ILSpy/Commands/SelectPdbContextMenuEntry.cs

4
ILSpy/Commands/SelectPdbContextMenuEntry.cs

@ -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));

Loading…
Cancel
Save