13 references to _completionSource
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\QueueItem.cs (13)
57cancellationToken.Register(() => _completionSource.TrySetCanceled(cancellationToken)); 84return (queueItem, queueItem._completionSource.Task); 108/// Deserializes the request into the concrete type. If the deserialization fails we will fail the request and call TrySetException on the <see cref="_completionSource"/> 139_completionSource.TrySetException(ex); 184_completionSource.TrySetException(new InvalidOperationException($"Unable to create request context for {MethodName}")); 194_completionSource.TrySetResult(result); 200_completionSource.TrySetResult(result); 207_completionSource.TrySetResult((TResponse)(object)NoValue.Instance); 214_completionSource.TrySetResult((TResponse)(object)NoValue.Instance); 229_completionSource.TrySetCanceled(ex.CancellationToken); 249_completionSource.TrySetException(ex); 258await _completionSource.Task.ConfigureAwait(false); 273_completionSource.TrySetException(exception);