private static async Task <LSP.InitializeResult> RunInitializeAsync(Solution solution, LSP.InitializeParams request) => await GetLanguageServer(solution).InitializeAsync(solution, request, new LSP.ClientCapabilities(), CancellationToken.None);
private static async Task <LSP.InitializeResult> RunInitializeAsync(Solution solution, LSP.InitializeParams request) { var queue = CreateRequestQueue(solution); return(await GetLanguageServer(solution).ExecuteRequestAsync <LSP.InitializeParams, LSP.InitializeResult>(queue, LSP.Methods.InitializeName, request, new LSP.ClientCapabilities(), null, CancellationToken.None)); }
/// <summary> /// Answers an initialize request by returning the server capabilities. /// https://microsoft.github.io/language-server-protocol/specification#initialize /// </summary> /// <param name="solution">the solution containing the document.</param> /// <param name="request">the initialize parameters.</param> /// <param name="clientCapabilities">the client capabilities for the request.</param> /// <param name="cancellationToken">a cancellation token.</param> /// <returns>the server capabilities.</returns> public Task <LSP.InitializeResult> InitializeAsync(Solution solution, LSP.InitializeParams request, LSP.ClientCapabilities clientCapabilities, CancellationToken cancellationToken) => ExecuteRequestAsync <LSP.InitializeParams, LSP.InitializeResult>(LSP.Methods.InitializeName, solution, request, clientCapabilities, cancellationToken);
private static async Task <LSP.InitializeResult> RunInitializeAsync(Solution solution, LSP.InitializeParams request) => await GetLanguageServer(solution).ExecuteRequestAsync <LSP.InitializeParams, LSP.InitializeResult>(LSP.Methods.InitializeName, solution, request, new LSP.ClientCapabilities(), null, CancellationToken.None);