Skip to content

Commit

Permalink
prevent VS from crashing if VS got shutdown while build error reporti…
Browse files Browse the repository at this point in the history
…ng is in progress.
  • Loading branch information
heejaechang committed Jun 17, 2016
1 parent 5d25d15 commit 947e008
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ public void Reanalyze(Workspace workspace, IIncrementalAnalyzer analyzer, IEnume
var coordinator = default(WorkCoordinator);
if (!_documentWorkCoordinatorMap.TryGetValue(workspace, out coordinator))
{
throw new ArgumentException("workspace");
// this can happen if solution crawler is already unregistered from workspace.
// one of those example will be VS shutting down so roslyn package is disposed but there is a pending
// async operation.
return;
}

// no specific projects or documents provided
Expand Down

0 comments on commit 947e008

Please sign in to comment.