diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/formatting.h')
-rw-r--r-- | graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/formatting.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/formatting.h b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/formatting.h index 49b7883b5f..2b54716353 100644 --- a/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/formatting.h +++ b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/formatting.h @@ -4,22 +4,23 @@ #include "LibLsp/JsonRpc/RequestInMessage.h" #include "LibLsp/JsonRpc/lsResponseMessage.h" +namespace TextDocumentFormatting +{ -namespace TextDocumentFormatting { - - struct Params { - /** +struct Params +{ + /** * The document to format. */ lsTextDocumentIdentifier textDocument; - /** + /** * The format options. */ lsFormattingOptions options; - MAKE_SWAP_METHOD(Params, textDocument, options); - }; - + MAKE_SWAP_METHOD(Params, textDocument, options); }; + +}; // namespace TextDocumentFormatting MAKE_REFLECT_STRUCT(TextDocumentFormatting::Params, textDocument, options); /** * The document formatting request is sent from the client to the server to @@ -27,6 +28,6 @@ MAKE_REFLECT_STRUCT(TextDocumentFormatting::Params, textDocument, options); * * Registration Options: TextDocumentRegistrationOptions */ -DEFINE_REQUEST_RESPONSE_TYPE(td_formatting, TextDocumentFormatting::Params, - std::vector<lsTextEdit>, "textDocument/formatting"); - +DEFINE_REQUEST_RESPONSE_TYPE( + td_formatting, TextDocumentFormatting::Params, std::vector<lsTextEdit>, "textDocument/formatting" +); |