4 instantiations of TestResponse
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Ordering\LongRunningNonMutatingRequestHandler.cs (1)
37return Task.FromResult(new TestResponse());
Ordering\MutatingRequestHandler.cs (1)
32var response = new TestResponse
Ordering\NonLSPSolutionRequestHandlerProvider.cs (1)
34return Task.FromResult(new TestResponse());
Ordering\NonMutatingRequestHandler.cs (1)
32var response = new TestResponse();
19 references to TestResponse
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (19)
Ordering\FailingMutatingRequestHandler.cs (2)
16internal class FailingMutatingRequestHandler : ILspServiceRequestHandler<TestRequest, TestResponse> 30public async Task<TestResponse> HandleRequestAsync(TestRequest request, RequestContext context, CancellationToken cancellationToken)
Ordering\FailingRequestHandler.cs (2)
16internal class FailingRequestHandler : ILspServiceRequestHandler<TestRequest, TestResponse> 30public async Task<TestResponse> HandleRequestAsync(TestRequest request, RequestContext context, CancellationToken cancellationToken)
Ordering\LongRunningNonMutatingRequestHandler.cs (2)
17internal class LongRunningNonMutatingRequestHandler : ILspServiceRequestHandler<TestRequest, TestResponse> 31public Task<TestResponse> HandleRequestAsync(TestRequest request, RequestContext context, CancellationToken cancellationToken)
Ordering\MutatingRequestHandler.cs (3)
16internal class MutatingRequestHandler : ILspServiceRequestHandler<TestRequest, TestResponse> 30public async Task<TestResponse> HandleRequestAsync(TestRequest request, RequestContext context, CancellationToken cancellationToken) 32var response = new TestResponse
Ordering\NonLSPSolutionRequestHandlerProvider.cs (2)
17internal class NonLSPSolutionRequestHandler : ILspServiceRequestHandler<TestRequest, TestResponse> 30public Task<TestResponse> HandleRequestAsync(TestRequest request, RequestContext context, CancellationToken cancellationToken)
Ordering\NonMutatingRequestHandler.cs (3)
16internal class NonMutatingRequestHandler : ILspServiceRequestHandler<TestRequest, TestResponse> 30public async Task<TestResponse> HandleRequestAsync(TestRequest request, RequestContext context, CancellationToken cancellationToken) 32var response = new TestResponse();
Ordering\RequestOrderingTests.cs (5)
271var response = await testLspServer.ExecuteRequestAsync<TestRequest, TestResponse>(request.MethodName, request, CancellationToken.None); 283private static async Task<TestResponse[]> TestAsync(TestLspServer testLspServer, TestRequest[] requests) 297private static List<Task<TestResponse?>> StartTestRun(TestLspServer testLspServer, TestRequest[] requests, CancellationToken cancellationToken = default) 299var waitables = new List<Task<TestResponse?>>(); 301waitables.Add(testLspServer.ExecuteRequestAsync<TestRequest, TestResponse>(request.MethodName, request, cancellationToken));