Skip to content

Commit 1c167d0

Browse files
Don't use RunContinuationsAsynchronously for our TaskCompletionSource (#1838)
It's not a good sign that this slowed everything down, but at least it's easy to revert. More investigation is required.
1 parent fa6a043 commit 1c167d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousTask.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected SynchronousTask(
3535
CancellationToken cancellationToken)
3636
{
3737
Logger = logger;
38-
_taskCompletionSource = new TaskCompletionSource<TResult>(TaskCreationOptions.RunContinuationsAsynchronously);
38+
_taskCompletionSource = new TaskCompletionSource<TResult>();
3939
_taskRequesterCancellationToken = cancellationToken;
4040
_executionCanceled = false;
4141
}

0 commit comments

Comments
 (0)