nixd
Loading...
Searching...
No Matches
Public Attributes | List of all members
lspserver::InitializeParams Struct Reference

#include <Protocol.h>

Collaboration diagram for lspserver::InitializeParams:
[legend]

Public Attributes

std::optional< intprocessId
 
std::optional< std::string > rootPath
 
std::optional< URIForFilerootUri
 
ClientCapabilities capabilities
 The capabilities provided by the client (editor or tool)
 
llvm::json::Object rawCapabilities
 The same data as capabilities, but not parsed (to expose to modules).
 
std::optional< TraceLeveltrace
 The initial trace setting. If omitted trace is disabled ('off').
 
InitializationOptions initializationOptions
 User-provided initialization options.
 

Detailed Description

Definition at line 585 of file lspserver/include/lspserver/Protocol.h.

Member Data Documentation

◆ capabilities

ClientCapabilities lspserver::InitializeParams::capabilities

The capabilities provided by the client (editor or tool)

Definition at line 607 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ initializationOptions

InitializationOptions lspserver::InitializeParams::initializationOptions

User-provided initialization options.

Definition at line 615 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ processId

std::optional<int> lspserver::InitializeParams::processId

The process Id of the parent process that started the server. Is null if the process has not been started by another process. If the parent process is not alive then the server should exit (see exit notification) its process.

Definition at line 590 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ rawCapabilities

llvm::json::Object lspserver::InitializeParams::rawCapabilities

The same data as capabilities, but not parsed (to expose to modules).

Definition at line 609 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ rootPath

std::optional<std::string> lspserver::InitializeParams::rootPath

The rootPath of the workspace. Is null if no folder is open.

deprecated, in favour of rootUri.

Definition at line 596 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ rootUri

std::optional<URIForFile> lspserver::InitializeParams::rootUri

The rootUri of the workspace. Is null if no folder is open. If both rootPath and rootUri are set rootUri wins.

Definition at line 601 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ trace

std::optional<TraceLevel> lspserver::InitializeParams::trace

The initial trace setting. If omitted trace is disabled ('off').

Definition at line 612 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().


The documentation for this struct was generated from the following file: