16 references to TestConfigurableDocumentHandler
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (16)
HandlerTests.cs (11)
37
typeof(
TestConfigurableDocumentHandler
));
160
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
163
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
188
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
191
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
216
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: true, requiresLspSolution: true, response);
219
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
246
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
249
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
274
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: true, requiresLspSolution: true, response);
277
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
TestConfigurableDocumentHandler.cs (5)
23
[ExportCSharpVisualBasicStatelessLspService(typeof(
TestConfigurableDocumentHandler
)), PartNotDiscoverable, Shared]
29
public const string MethodName = nameof(
TestConfigurableDocumentHandler
);
63
var
handler = (
TestConfigurableDocumentHandler
)server.GetQueueAccessor()!.Value.GetHandlerProvider().GetMethodHandler(
TestConfigurableDocumentHandler
.MethodName,