struct LSP::TextDocumentItem

Included Modules

Defined in:

lsp/protocol/text_document_item.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(uri : String, version : Int64, language_id : String, text : String) #

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

[View source]

Instance Method Detail

def language_id : String #

The text document's language identifier.


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

The text document's language identifier.


[View source]
def path #

Returns the path of the URI


[View source]
def text : String #

The content of the opened text document.


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

The content of the opened text document.


[View source]
def uri : String #

The text document's URI.


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

The text document's URI.


[View source]
def version : Int64 #

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


[View source]
def version=(version : Int64) #

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


[View source]