class LSP::TextDocumentEdit

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

Defined in:

base/text_document_edit.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(**args) #

[View source]

Instance Method Detail

def edits : Array(TextEdit) #

The edits to be applied.


[View source]
def edits=(edits : Array(TextEdit)) #

The edits to be applied.


[View source]
def text_document : VersionedTextDocumentIdentifier #

[View source]
def text_document=(text_document : VersionedTextDocumentIdentifier) #

[View source]