class LSProtocol::TextDocumentItem
- LSProtocol::TextDocumentItem
- Reference
- Object
Overview
An item to transfer a text document from the client to the server.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(language_id : LanguageKind | String | Nil, text : String | Nil, uri : URI | Nil, version : Int32 | Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#language_id : LanguageKind | String
The text document's language identifier.
-
#text : String
The content of the opened text document.
-
#uri : URI
The text document's uri.
-
#version : Int32
The version number of this document (it will increase after each change, including undo/redo).
Constructor Detail
def self.new(language_id : LanguageKind | String | Nil, text : String | Nil, uri : URI | Nil, version : Int32 | Nil)
#
Instance Method Detail
def version : Int32
#
The version number of this document (it will increase after each change, including undo/redo).