class LSP::WillSaveWaitUntilRequest

Overview

The document will save request is sent from the client to the server before the document is actually saved. The request can return an array of TextEdits which will be applied to the text document before it is saved. Please note that clients might drop results if computing the text edits took too long or if a server constantly fails on this request. This is done to keep the save fast and reliable.

Included Modules

Defined in:

requests/text_synchronization/will_save_wait_until.cr

Constructors

Instance Method Summary

Instance methods inherited from class LSP::RequestMessage(Array(LSP::TextEdit)?)

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(Result(LSP::TextEdit)??, ResponseError?, Nil))
on_response
, on_response? : Proc(Result(LSP::TextEdit)??, ResponseError?, Nil)? on_response?

Constructor methods inherited from class LSP::RequestMessage(Array(LSP::TextEdit)?)

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

Constructor Detail

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

The document will save request is sent from the client to the server before the document is actually saved. The request can return an array of TextEdits which will be applied to the text document before it is saved. Please note that clients might drop results if computing the text edits took too long or if a server constantly fails on this request. This is done to keep the save fast and reliable.


def self.new(**args) #

Instance Method Detail


def params=(params : WillSaveTextDocumentParams) #