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


[View source]
def self.new(**args) #

Instance Method Detail


[View source]
def params=(params : WillSaveTextDocumentParams) #

[View source]