diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2019-07-05 20:48:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 20:48:05 +0300 |
commit | 0ca1979ece0fd8b09240e6a5f4ab089b9fc88471 (patch) | |
tree | 957d24f0753f8675d8a3e6ee334ca169fd3ff59c | |
parent | 3849e9c4a4b28b32696cb9f4a7ead0bc43da06d1 (diff) | |
parent | ea11448e0457057b746830a510598c3608216525 (diff) |
Merge pull request #8072 from mono/backport-pr-8033-to-release-8.2
[release-8.2] [C#] Fix unhandled exception that is thrown when completion is canceled
-rw-r--r-- | main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs index 26768d18e6..32769dacd0 100644 --- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs +++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs @@ -228,7 +228,7 @@ namespace MonoDevelop.CSharp.Completion result.AutoCompleteUniqueMatch = false; result.AutoCompleteEmptyMatch = false; return (ICompletionDataList)result; - }); + }, token, TaskContinuationOptions.OnlyOnRanToCompletion | TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Current); } catch (Exception e) { LoggingService.LogError ("Unexpected code completion exception." + Environment.NewLine + "FileName: " + DocumentContext.Name + Environment.NewLine + |