2 implementations of ExecuteRequestAsync
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
189
public async Task<TResponseType?>
ExecuteRequestAsync
<TRequestType, TResponseType>(string methodName, TRequestType request, CancellationToken cancellationToken) where TRequestType : class
Utilities\AbstractLanguageServerHostTests.cs (1)
88
public async Task<TResponseType?>
ExecuteRequestAsync
<TRequestType, TResponseType>(string methodName, TRequestType request, CancellationToken cancellationToken) where TRequestType : class
3 references to ExecuteRequestAsync
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
Utilities\LspClientExtensions.cs (3)
14
await lspClient.
ExecuteRequestAsync
<InitializedParams, object>(Methods.InitializedName, new InitializedParams(), CancellationToken.None);
19
return await lspClient.
ExecuteRequestAsync
<InitializeParams, InitializeResult>(Methods.InitializeName, new InitializeParams { Capabilities = clientCapabilities }, CancellationToken.None);
31
var result = await lspClient.
ExecuteRequestAsync
<CodeActionParams, CodeAction[]>(Methods.TextDocumentCodeActionName, codeActionParams, CancellationToken.None);