summaryrefslogtreecommitdiff
path: root/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_save.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_save.h')
-rw-r--r--graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_save.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_save.h b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_save.h
index 5d00af0c20..09e3311832 100644
--- a/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_save.h
+++ b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_save.h
@@ -1,24 +1,23 @@
#pragma once
-
-
#include "LibLsp/JsonRpc/NotificationInMessage.h"
+namespace TextDocumentDidSave
+{
-namespace TextDocumentDidSave {
-
- struct Params {
+struct Params
+{
// The document that was saved.
lsTextDocumentIdentifier textDocument;
// Optional the content when saved. Depends on the includeText value
// when the save notifcation was requested.
- optional<std::string> text;
-
- MAKE_SWAP_METHOD(TextDocumentDidSave::Params, textDocument, text);
- };
+ optional<std::string> text;
+ MAKE_SWAP_METHOD(TextDocumentDidSave::Params, textDocument, text);
};
+
+}; // namespace TextDocumentDidSave
MAKE_REFLECT_STRUCT(TextDocumentDidSave::Params, textDocument, text);
/**
@@ -28,4 +27,3 @@ MAKE_REFLECT_STRUCT(TextDocumentDidSave::Params, textDocument, text);
* Registration Options: TextDocumentSaveRegistrationOptions
*/
DEFINE_NOTIFICATION_TYPE(Notify_TextDocumentDidSave, TextDocumentDidSave::Params, "textDocument/didSave");
-