13 references to _completionSource
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\QueueItem.cs (13)
56cancellationToken.Register(() => _completionSource.TrySetCanceled(cancellationToken)); 83return (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); 245await _completionSource.Task.ConfigureAwait(false); 260_completionSource.TrySetException(exception);