struct LSP::Data::TextDocumentItem
- LSP::Data::TextDocumentItem
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
lsp/data/text_document_item.crConstructors
- .new(pull : JSON::PullParser)
- .new(uri : URI = URI.new, language_id : String = "", version : Int64 = 0, text : String = "")
Instance Method Summary
- #language_id : String
- #language_id=(language_id : String)
-
#text : String
The content of the opened text document.
-
#text=(text : String)
The content of the opened text document.
- #uri : URI
- #uri=(uri : URI)
-
#version : Int64
The version number of this document (it will increase after each change, including undo/redo).
-
#version=(version : Int64)
The version number of this document (it will increase after each change, including undo/redo).
Constructor Detail
def self.new(uri : URI = URI.new, language_id : String = "", version : Int64 = 0, text : String = "")
#
Instance Method Detail
def version : Int64
#
The version number of this document (it will increase after each change, including undo/redo).
def version=(version : Int64)
#
The version number of this document (it will increase after each change, including undo/redo).