class LSP::WillSaveWaitUntilRequest
- LSP::WillSaveWaitUntilRequest
- LSP::RequestMessage(Array(LSP::TextEdit)?)
- Reference
- Object
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.crConstructors
-
.new(pull : JSON::PullParser)
The document will save request is sent from the client to the server before the document is actually saved.
- .new(**args)
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
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.