struct LSP::Message::Initialize

Overview

The initialize request is sent as the first request from the client to the server. If the server receives a request or notification before the initialize request it should act as follows:

Until the server has responded to the initialize request with an InitializeResult, the client must not send any additional requests or notifications to the server. In addition the server is not allowed to send any requests or notifications to the client until it has responded with an InitializeResult, with the exception that during the initialize request the server is allowed to send the notifications window/showMessage, window/logMessage and telemetry/event as well as the window/showMessageRequest request to the client.

The initialize request may only be sent once.

Included Modules

Defined in:

lsp/message.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(id : Int64 | String, params : LSP::Message::Initialize::Params = Params.new) #

[View source]

Class Method Detail

def self.empty_result #

[View source]
def self.method #

[View source]

Instance Method Detail

def error_response_from_json(input) #

[View source]
def id : Int64 | String #

def id=(id : Int64 | String) #

def jsonrpc : String #

def jsonrpc=(jsonrpc : String) #

def method : String #

def method=(method : String) #

def new_error_response #

[View source]
def new_response #

[View source]
def params : Params #

def params=(params : Params) #

def response_from_json(input) #

[View source]