Debian Codegraph @

LspCpp/include/LibLsp/lsp/textDocument/range_formatting.h

raw
1 #pragma once
2
3 #include "LibLsp/JsonRpc/RequestInMessage.h"
4 #include "LibLsp/JsonRpc/lsResponseMessage.h"
5
6 #include "LibLsp/lsp/lsFormattingOptions.h"
7
8 struct lsTextDocumentRangeFormattingParams
9 {
10 lsTextDocumentIdentifier textDocument;
11 lsRange range;
12 lsFormattingOptions options;
13
14 MAKE_SWAP_METHOD(lsTextDocumentRangeFormattingParams, textDocument, range, options)
15 };
16 MAKE_REFLECT_STRUCT(lsTextDocumentRangeFormattingParams, textDocument, range, options);
17
18 /**
19 * The document range formatting request is sent from the client to the
20 * server to format a given range in a document.
21 *
22 * Registration Options: TextDocumentRegistrationOptions
23 */
24 DEFINE_REQUEST_RESPONSE_TYPE(
25 td_rangeFormatting, lsTextDocumentRangeFormattingParams, std::vector<lsTextEdit>, "textDocument/rangeFormatting"
26 );