nixd
|
#include <Protocol.h>
Public Attributes | |
std::optional< std::int64_t > | version |
Public Attributes inherited from lspserver::TextDocumentIdentifier | |
URIForFile | uri |
The text document's URI. | |
Definition at line 111 of file lspserver/include/lspserver/Protocol.h.
std::optional<std::int64_t> lspserver::VersionedTextDocumentIdentifier::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 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.
clangd extension: versions are optional, and synthesized if missing.
Definition at line 122 of file lspserver/include/lspserver/Protocol.h.
Referenced by lspserver::fromJSON(), and lspserver::toJSON().