clang-tools 19.0.0git
Public Attributes | List of all members
clang::clangd::InitializeParams Struct Reference

#include <Protocol.h>

Public Attributes

std::optional< int > processId
 The process Id of the parent process that started the server.
 
std::optional< std::string > rootPath
 The rootPath of the workspace.
 
std::optional< URIForFilerootUri
 The rootUri of the workspace.
 
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 611 of file Protocol.h.

Member Data Documentation

◆ capabilities

ClientCapabilities clang::clangd::InitializeParams::capabilities

The capabilities provided by the client (editor or tool)

Definition at line 633 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

◆ initializationOptions

InitializationOptions clang::clangd::InitializeParams::initializationOptions

User-provided initialization options.

Definition at line 641 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

◆ processId

std::optional<int> clang::clangd::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 616 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

◆ rawCapabilities

llvm::json::Object clang::clangd::InitializeParams::rawCapabilities

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

Definition at line 635 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

◆ rootPath

std::optional<std::string> clang::clangd::InitializeParams::rootPath

The rootPath of the workspace.

Is null if no folder is open.

Deprecated:
in favour of rootUri.

Definition at line 622 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

◆ rootUri

std::optional<URIForFile> clang::clangd::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 627 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

◆ trace

std::optional<TraceLevel> clang::clangd::InitializeParams::trace

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

Definition at line 638 of file Protocol.h.

Referenced by clang::clangd::fromJSON().


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