16 references to TestConfigurableDocumentHandler
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (16)
HandlerTests.cs (11)
38
typeof(
TestConfigurableDocumentHandler
));
165
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
168
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
193
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
196
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
221
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: true, requiresLspSolution: true, response);
224
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
251
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
254
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
279
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: true, requiresLspSolution: true, response);
282
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
TestConfigurableDocumentHandler.cs (5)
22
[ExportCSharpVisualBasicStatelessLspService(typeof(
TestConfigurableDocumentHandler
)), PartNotDiscoverable, Shared]
28
public const string MethodName = nameof(
TestConfigurableDocumentHandler
);
62
var
handler = (
TestConfigurableDocumentHandler
)server.GetQueueAccessor()!.Value.GetHandlerProvider().GetMethodHandler(
TestConfigurableDocumentHandler
.MethodName,