class LSP::TextDocumentEdit
- LSP::TextDocumentEdit
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
- LSP::Initializer
Defined in:
base/text_document_edit.crConstructors
Instance Method Summary
-
#edits : Array(TextEdit)
The edits to be applied.
-
#edits=(edits : Array(TextEdit))
The edits to be applied.
- #text_document : VersionedTextDocumentIdentifier
- #text_document=(text_document : VersionedTextDocumentIdentifier)