コード例 #1
0
ファイル: InitializeTests.cs プロジェクト: sliepie/roslyn
 private static async Task <LSP.InitializeResult> RunInitializeAsync(Solution solution, LSP.InitializeParams request)
 => await GetLanguageServer(solution).InitializeAsync(solution, request, new LSP.ClientCapabilities(), CancellationToken.None);
コード例 #2
0
ファイル: InitializeTests.cs プロジェクト: cty901/roslyn
        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));
        }
コード例 #3
0
 /// <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);
コード例 #4
0
 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);