View Source GenLSP.Requests.TextDocumentWillSaveWaitUntil (gen_lsp v0.8.1)

A 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.

Message Direction: clientToServer

Link to this section Summary

Link to this section Types

@type result() :: [GenLSP.Structures.TextEdit.t()] | nil
@type t() :: %GenLSP.Requests.TextDocumentWillSaveWaitUntil{
  id: integer(),
  jsonrpc: String.t(),
  method: String.t(),
  params: GenLSP.Structures.WillSaveTextDocumentParams.t() | nil
}