class LSP::VersionedTextDocumentIdentifier

Included Modules

Defined in:

base/versioned_text_document_identifier.cr

Constructors

Instance Method Summary

Constructor Detail

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

def self.new(**args) #

Instance Method Detail

def uri : String #

The text document's URI.


def uri=(uri : String) #

The text document's URI.


def version : Int32? #

The version number of this document. If a 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 speced 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.


def version=(version : Int32?) #

The version number of this document. If a 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 speced 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.