nixd
Loading...
Searching...
No Matches
Public Attributes | List of all members
lspserver::TextDocumentItem Struct Reference

#include <Protocol.h>

Collaboration diagram for lspserver::TextDocumentItem:
[legend]

Public Attributes

URIForFile uri
 The text document's URI.
 
std::string languageId
 The text document's language identifier.
 
std::optional< int64_tversion
 
std::string text
 The content of the opened text document.
 

Detailed Description

Definition at line 273 of file lspserver/include/lspserver/Protocol.h.

Member Data Documentation

◆ languageId

std::string lspserver::TextDocumentItem::languageId

The text document's language identifier.

Definition at line 278 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ text

std::string lspserver::TextDocumentItem::text

The content of the opened text document.

Definition at line 287 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ uri

URIForFile lspserver::TextDocumentItem::uri

The text document's URI.

Definition at line 275 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().

◆ version

std::optional<int64_t> lspserver::TextDocumentItem::version

The version number of this document (it will strictly increase after each change, including undo/redo.

clangd extension: versions are optional, and synthesized if missing.

Definition at line 284 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::fromJSON().


The documentation for this struct was generated from the following file: