16 references to TestConfigurableDocumentHandler
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (16)
HandlerTests.cs (11)
39
typeof(
TestConfigurableDocumentHandler
));
162
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
165
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
195
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
198
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
228
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: true, requiresLspSolution: true, response);
231
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
258
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: false, requiresLspSolution: true, response);
261
=> await server.ExecuteRequestAsync<TestRequestWithDocument, TestConfigurableResponse>(
TestConfigurableDocumentHandler
.MethodName, request, CancellationToken.None));
291
TestConfigurableDocumentHandler
.ConfigureHandler(server, mutatesSolutionState: true, requiresLspSolution: true, response);
294
=> 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,