Add a default VS foregrounddispatcher
This commit is contained in:
parent
a9a86fa3bf
commit
7ca8255d6f
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System.ComponentModel.Composition;
|
||||
using Microsoft.VisualStudio.Shell;
|
||||
|
||||
namespace Microsoft.VisualStudio.LanguageServices.Razor
|
||||
{
|
||||
[Export(typeof(ForegroundDispatcher))]
|
||||
internal class VisualStudioForegroundDispatcher : ForegroundDispatcher
|
||||
{
|
||||
public override bool IsForegroundThread => ThreadHelper.CheckAccess();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue