From acdf22921367d961dc53b506231c9120542bfc88 Mon Sep 17 00:00:00 2001 From: Patrick Meinecke Date: Wed, 22 Jun 2022 14:23:34 -0400 Subject: [PATCH] Revert task creation options on TCS It's not a good sign that this slowed everything down, but at least it's easy to revert. More investigation is required. --- .../Services/PowerShell/Execution/SynchronousTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousTask.cs b/src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousTask.cs index 900ba4b1e..fc7f97cd8 100644 --- a/src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousTask.cs +++ b/src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousTask.cs @@ -35,7 +35,7 @@ protected SynchronousTask( CancellationToken cancellationToken) { Logger = logger; - _taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + _taskCompletionSource = new TaskCompletionSource(); _taskRequesterCancellationToken = cancellationToken; _executionCanceled = false; }