class

LSP::TextDocumentEdit

Inherits LSP::Initializer < JSON::Serializable < Reference < Object

Describes textual changes on a single text document.

The text document is referred to as a VersionedTextDocumentIdentifier to allow clients to check the text document version before an edit is applied. A TextDocumentEdit describes all changes on a 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.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

edits

The edits to be applied.

Source
edits=(edits : Array(TextEdit))

The edits to be applied.

Source
text_document

The text document to change.

Source
text_document=(text_document : VersionedTextDocumentIdentifier)

The text document to change.

Source