class LSProtocol::OptionalVersionedTextDocumentIdentifier
- LSProtocol::OptionalVersionedTextDocumentIdentifier
- Reference
- Object
Overview
A text document identifier to optionally denote a specific version of a text document.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
Instance Method Summary
-
#uri : URI
The text document's uri.
-
#version : Int32 | Nil
The version number of this document.
Constructor Detail
Instance Method Detail
def version : Int32 | Nil
#
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).