struct

LSP::Message::Initialize::Params

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new(process_id : Int64 | Nil = nil, root_uri : Nil | URI = nil, options : JSON::Any | Nil = nil, capabilities : LSP::Data::ClientCapabilities = Data::ClientCapabilities.new, trace : String = "off", workspace_folders : Array(LSP::Data::WorkspaceFolder) = [] of Data::WorkspaceFolder)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

_root_path

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

@deprecated in favour of rootUri.

Source
_root_path=(_root_path : String | Nil)

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

@deprecated in favour of rootUri.

Source
capabilities

The capabilities provided by the client (editor or tool)

Source
capabilities=(capabilities : Data::ClientCapabilities)

The capabilities provided by the client (editor or tool)

Source
options

User provided initialization options.

Source
options=(options : JSON::Any | Nil)

User provided initialization options.

Source
process_id

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.

Source
process_id=(process_id : Int64 | Nil)

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.

Source
root_uri

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

Source
root_uri=(root_uri : URI | Nil)

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

Source
trace

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

Source
trace=(trace : String)

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

Source
workspace_folders

The workspace folders configured in the client when the server starts. This property is only available if the client supports workspace folders. It can be null if the client supports workspace folders but none are configured.

Since 3.6.0

Source
workspace_folders=(workspace_folders : Array(Data::WorkspaceFolder))

The workspace folders configured in the client when the server starts. This property is only available if the client supports workspace folders. It can be null if the client supports workspace folders but none are configured.

Since 3.6.0

Source