diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2015-09-16 08:49:10 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2015-09-16 08:49:10 +0300 |
commit | 8ab33e4e6071fa8f8f7d9b53e01480ab3b1357aa (patch) | |
tree | dbfbfc96929ccc078e886fdd4843474b0962b43e | |
parent | 32aeb538a784f8ad54c849ad1f0c23d5b562a091 (diff) |
[CSharpBinding] Project search category now updates document changes
on a background task.
-rw-r--r-- | main/src/addins/CSharpBinding/MonoDevelop.CSharp/ProjectSearchCategory.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/ProjectSearchCategory.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/ProjectSearchCategory.cs index ee9ac6f7e7..c9bfd18cb2 100644 --- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/ProjectSearchCategory.cs +++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/ProjectSearchCategory.cs @@ -177,7 +177,10 @@ namespace MonoDevelop.CSharp RemoveDocument (documentInfos, e.DocumentId); break; case WorkspaceChangeKind.DocumentChanged: - await UpdateDocument (documentInfos, ws.CurrentSolution.GetDocument (e.DocumentId), default (CancellationToken)); + var doc = ws.CurrentSolution.GetDocument (e.DocumentId); + Task.Run (async delegate { + await UpdateDocument (documentInfos, doc, default (CancellationToken)); + }); break; } } |