class LSP::TextEdit

Overview

A textual edit applicable to a text document.

Included Modules

Defined in:

base/text_edit.cr

Constructors

Instance Method Summary

Macros inherited from module JSON::Serializable

json_discriminator(field, mapping, *, default = nil) json_discriminator

Constructor Detail

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

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

[View source]

Instance Method Detail

def new_text : String #

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


[View source]
def new_text=(new_text : String) #

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


[View source]
def range : Range #

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


[View source]
def range=(range : Range) #

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


[View source]