class LSP::OptionalVersionedTextDocumentIdentifier

Defined in:

lsp/protocol/optional_versioned_text_document_identifier.cr

Constructors

Instance Method Summary

Instance methods inherited from class LSP::TextDocumentIdentifier

path path, uri : String uri, uri=(uri : String) uri=

Constructor methods inherited from class LSP::TextDocumentIdentifier

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def version : Int64 | Nil #

The version number of this document. If an optional versioned text document identifier is sent from the server to the client and the file is not open in the editor (the server has not received an open notification before) the server can send null to indicate that the version is known and the content on disk is the master (as specified with document content ownership).

The version number of a document will increase after each change, including undo/redo. The number doesn't need to be consecutive.


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

The version number of this document. If an optional versioned text document identifier is sent from the server to the client and the file is not open in the editor (the server has not received an open notification before) the server can send null to indicate that the version is known and the content on disk is the master (as specified with document content ownership).

The version number of a document will increase after each change, including undo/redo. The number doesn't need to be consecutive.


[View source]