Browse Source

Use Workbench safe thread call in Visual Studio ThreadHelper.

pull/28/head
Matt Ward 14 years ago
parent
commit
d300a536d5
  1. 3
      src/AddIns/Misc/PackageManagement/Project/Src/VisualStudio/ThreadHelper.cs

3
src/AddIns/Misc/PackageManagement/Project/Src/VisualStudio/ThreadHelper.cs

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using ICSharpCode.SharpDevelop.Gui;
namespace Microsoft.VisualStudio.Shell
{
@ -19,7 +20,7 @@ namespace Microsoft.VisualStudio.Shell @@ -19,7 +20,7 @@ namespace Microsoft.VisualStudio.Shell
public T Invoke<T>(Func<T> method)
{
return method();
return WorkbenchSingleton.SafeThreadFunction<T>(method);
}
}
}

Loading…
Cancel
Save