struct

LSP::Data::TextEdit

Inherits JSON::Serializable < Struct < Value < Object

A textual edit applicable to a text document.

Constructors

new(pull : JSON::PullParser)
Source
new(range : LSP::Data::Range = Range.new, new_text : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

new_text

The string to be inserted. For delete operations use an empty string.

Source
new_text=(new_text : String)

The string to be inserted. For delete operations use an empty string.

Source
range

The range of the text document to be manipulated. To insert netext into a document create a range where start === end.

Source
range=(range : Range)

The range of the text document to be manipulated. To insert netext into a document create a range where start === end.

Source