From d300a536d58927aa15708b0ff88af741ec0ee6ef Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Mon, 28 May 2012 20:31:46 +0100 Subject: [PATCH] Use Workbench safe thread call in Visual Studio ThreadHelper. --- .../PackageManagement/Project/Src/VisualStudio/ThreadHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/PackageManagement/Project/Src/VisualStudio/ThreadHelper.cs b/src/AddIns/Misc/PackageManagement/Project/Src/VisualStudio/ThreadHelper.cs index d3e601d0fc..30b7d75836 100644 --- a/src/AddIns/Misc/PackageManagement/Project/Src/VisualStudio/ThreadHelper.cs +++ b/src/AddIns/Misc/PackageManagement/Project/Src/VisualStudio/ThreadHelper.cs @@ -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 public T Invoke(Func method) { - return method(); + return WorkbenchSingleton.SafeThreadFunction(method); } } }