13 references to _completionSource
Microsoft.CommonLanguageServerProtocol.Framework.Package (13)
QueueItem.cs (13)
56
cancellationToken.Register(() =>
_completionSource
.TrySetCanceled(cancellationToken));
83
return (queueItem, queueItem.
_completionSource
.Task);
107
/// Deserializes the request into the concrete type. If the deserialization fails we will fail the request and call TrySetException on the <see cref="
_completionSource
"/>
138
_completionSource
.TrySetException(ex);
183
_completionSource
.TrySetException(new InvalidOperationException($"Unable to create request context for {MethodName}"));
193
_completionSource
.TrySetResult(result);
199
_completionSource
.TrySetResult(result);
206
_completionSource
.TrySetResult((TResponse)(object)NoValue.Instance);
213
_completionSource
.TrySetResult((TResponse)(object)NoValue.Instance);
226
_completionSource
.TrySetCanceled(ex.CancellationToken);
235
_completionSource
.TrySetException(ex);
245
await
_completionSource
.Task.ConfigureAwait(false);
260
_completionSource
.TrySetException(exception);