class

LSProtocol::TextDocumentItem

Inherits JSON::Serializable / Reference / Object

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

Constructors

new(language_id : LanguageKind | String | Nil, text : String | Nil, uri : URI | Nil, version : Int32 | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

language_id

The text document's language identifier.

Source
text

The content of the opened text document.

Source
uri

The text document's uri.

Source
version

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

Source