class

LSProtocol::OptionalVersionedTextDocumentIdentifier

Inherits JSON::Serializable / Reference / Object

A text document identifier to optionally denote a specific version of a text document.

Constructors

new(uri : URI | Nil, version : Int32 | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

uri

The text document's uri.

Source
version

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 unknown and the content on disk is the truth (as specified with document content ownership).

Source