class

LSProtocol::InitializeParamsPrivate

Inherits JSON::Serializable / Reference / Object

The initialize parameters

Constructors

new(capabilities : ClientCapabilities | Nil, process_id : Int32 | Nil, root_uri : URI | Nil, client_info : ClientInfo | Nil = nil, initialization_options : LSPAny | Nil = nil, locale : String | Nil = nil, root_path : String | Nil = nil, trace : TraceValue | Nil = nil, work_done_token : ProgressToken | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

capabilities

The capabilities provided by the client (editor or tool)

Source
client_info

Information about the client

@since 3.15.0

Source
initialization_options

User provided initialization options.

Source
locale

The locale the client is currently showing the user interface in. This must not necessarily be the locale of the operating system.

Uses IETF language tags as the value's syntax (See https://en.wikipedia.org/wiki/IETF_language_tag)

@since 3.16.0

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.

Source
root_path

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

@deprecated in favour of rootUri.

Source
root_uri

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

@deprecated in favour of workspaceFolders.

Source
trace

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

Source
work_done_token

An optional token that a server can use to report work done progress.

Source