Debian Codegraph @

LspCpp/include/LibLsp/lsp/lsTextDocumentItem.h

raw
1 #pragma once
2
3 #include "LibLsp/JsonRpc/serializer.h"
4 #include <string>
5 #include <vector>
6 #include "lsDocumentUri.h"
7
8 //An item to transfer a text document from the client to the server.
9 struct lsTextDocumentItem
10 {
11 // The text document's URI.
12 lsDocumentUri uri;
13
14 // The text document's language identifier.
15 std::string languageId;
16
17 // The version number of this document (it will strictly increase after each
18 // change, including undo/redo).
19 int version = 0;
20
21 // The content of the opened text document.
22 std::string text;
23
24 MAKE_SWAP_METHOD(lsTextDocumentItem, uri, languageId, version, text)
25 };
26
27 MAKE_REFLECT_STRUCT(lsTextDocumentItem, uri, languageId, version, text)