class LSProtocol::TextDocumentItem

Overview

An item to transfer a text document from the client to the server.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(language_id : LanguageKind | String | Nil, text : String | Nil, uri : URI | Nil, version : Int32 | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def language_id : LanguageKind | String #

[View source]
def text : String #

The content of the opened text document.


[View source]
def uri : URI #

The text document's uri.


[View source]
def version : Int32 #

The version number of this document (it will increase after each change, including undo/redo).


[View source]