提交 71990dcb 编写于 作者: H Heejae Chang

removed foreground check due to unit test

上级 02558acb
......@@ -20,7 +20,7 @@
namespace Microsoft.VisualStudio.LanguageServices.Implementation.TaskList
{
[Export(typeof(ExternalErrorDiagnosticUpdateSource))]
internal class ExternalErrorDiagnosticUpdateSource : ForegroundThreadAffinitizedObject, IDiagnosticUpdateSource
internal class ExternalErrorDiagnosticUpdateSource : IDiagnosticUpdateSource
{
private readonly Workspace _workspace;
private readonly IDiagnosticAnalyzerService _diagnosticService;
......@@ -79,8 +79,6 @@ public ImmutableArray<DiagnosticData> GetBuildErrors()
public void ClearErrors(ProjectId projectId)
{
AssertIsForeground();
var asyncToken = _listener.BeginAsyncOperation("ClearErrors");
_taskQueue.ScheduleTask(() =>
{
......@@ -140,8 +138,6 @@ private void OnWorkspaceChanged(object sender, WorkspaceChangeEventArgs e)
internal void OnSolutionBuild(object sender, UIContextChangedEventArgs e)
{
AssertIsForeground();
if (e.Activated)
{
// build just started, create the state and fire build in progress event.
......@@ -324,8 +320,6 @@ private void ClearDocumentErrors(ProjectId projectId, DocumentId documentId)
public void AddNewErrors(DocumentId documentId, DiagnosticData diagnostic)
{
AssertIsForeground();
var asyncToken = _listener.BeginAsyncOperation("Document New Errors");
_taskQueue.ScheduleTask(() =>
{
......@@ -336,8 +330,6 @@ public void AddNewErrors(DocumentId documentId, DiagnosticData diagnostic)
public void AddNewErrors(
ProjectId projectId, HashSet<DiagnosticData> projectErrors, Dictionary<DocumentId, HashSet<DiagnosticData>> documentErrorMap)
{
AssertIsForeground();
var asyncToken = _listener.BeginAsyncOperation("Project New Errors");
_taskQueue.ScheduleTask(() =>
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册