struct

LSP::InitializeParams

Inherits JSON::Serializable < LSP::WorkDoneProgressParams < Struct < Value < Object

Constructors

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
capabilities=(capabilities : ClientCapabilities)

The capabilities provided by the client (editor or tool)

Source
client_info

Information about the client

Source
client_info=(client_info : NamedTuple(name: String, version: String | Nil) | Nil)

Information about the client

Source
initialization_options

User provided initialization options.

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

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)

Source
locale=(locale : String | Nil)

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)

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 : Int32 | 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_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
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
root_uri=(root_uri : String | Nil)

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
trace=(trace : TraceValue | Nil)

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.

Source
workspace_folders=(workspace_folders : Array(WorkspaceFolder) | Nil)

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.

Source