public Task <ActiveProjectContexts?> GetProjectContextsAsync(GetTextDocumentWithContextParams textDocumentWithContextParams, CancellationToken cancellationToken)
        {
            Contract.ThrowIfNull(_clientCapabilities, $"{nameof(InitializeAsync)} has not been called.");

            return(RequestDispatcher.ExecuteRequestAsync <GetTextDocumentWithContextParams, ActiveProjectContexts?>(Queue, MSLSPMethods.ProjectContextsName,
                                                                                                                    textDocumentWithContextParams, _clientCapabilities, ClientName, cancellationToken));
        }
Пример #2
0
 public Task <ActiveProjectContexts?> GetProjectContextsAsync(GetTextDocumentWithContextParams textDocumentWithContextParams, CancellationToken cancellationToken)
 => _requestHandlerProvider.ExecuteRequestAsync <GetTextDocumentWithContextParams, ActiveProjectContexts?>(MSLSPMethods.ProjectContextsName,
                                                                                                           textDocumentWithContextParams, _clientCapabilities, _clientName, cancellationToken);
Пример #3
0
 public Task <ActiveProjectContexts?> GetProjectContextsAsync(GetTextDocumentWithContextParams textDocumentWithContextParams, CancellationToken cancellationToken)
 => _protocol.ExecuteRequestAsync <GetTextDocumentWithContextParams, ActiveProjectContexts?>(MSLSPMethods.ProjectContextsName,
                                                                                             _workspace.CurrentSolution, textDocumentWithContextParams, _clientCapabilities, _clientName, cancellationToken);