class LSP::ShutdownRequest

Overview

The shutdown request is sent from the client to the server.

It asks the server to shut down, but to not exit (otherwise the response might not be delivered correctly to the client). There is a separate exit notification that asks the server to exit. Clients must not send any notifications other than exit or requests to a server to which they have sent a shutdown request. If a server receives requests after a shutdown request those requests should error with InvalidRequest.

Included Modules

Defined in:

requests/shutdown.cr

Constructors

Instance Method Summary

Instance methods inherited from class LSP::RequestMessage(Nil)

id : RequestId id, id=(id : RequestId) id=, method : String method, method=(method : String) method=, on_response(raw : JSON::Any?, e : ResponseError?)
on_response(&block : Proc(Nil?, ResponseError?, Nil))
on_response
, on_response? : Proc(Nil?, ResponseError?, Nil)? on_response?

Constructor methods inherited from class LSP::RequestMessage(Nil)

new(pull : JSON::PullParser)
new(**args)
new

Constructor Detail

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

The shutdown request is sent from the client to the server.

It asks the server to shut down, but to not exit (otherwise the response might not be delivered correctly to the client). There is a separate exit notification that asks the server to exit. Clients must not send any notifications other than exit or requests to a server to which they have sent a shutdown request. If a server receives requests after a shutdown request those requests should error with InvalidRequest.


def self.new(**args) #

Instance Method Detail

def params : Nil #

def params=(params : Nil) #