View Source GenLSP.Structures.TextDocumentEdit (gen_lsp v0.8.1)

Describes textual changes on a text document. A TextDocumentEdit describes all changes on a document version Si and after they are applied move the document to version Si+1. So the creator of a TextDocumentEdit doesn't need to sort the array of edits or do any kind of ordering. However the edits must be non overlapping.

Link to this section Summary

Functions

Fields

  • text_document: The text document to change.

Link to this section Types

Link to this section Functions

Link to this function

%GenLSP.Structures.TextDocumentEdit{}

View Source (struct)

fields

Fields

  • text_document: The text document to change.

  • edits: The edits to be applied.

    @since 3.16.0 - support for AnnotatedTextEdit. This is guarded using a client capability.