diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_open.h')
-rw-r--r-- | graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_open.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_open.h b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_open.h new file mode 100644 index 0000000000..7be7a735d6 --- /dev/null +++ b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/did_open.h @@ -0,0 +1,39 @@ +#pragma once + + +#include "LibLsp/JsonRpc/NotificationInMessage.h" + +#include "LibLsp/lsp/lsTextDocumentItem.h" + +// Open, view, change, close file +namespace TextDocumentDidOpen { + + struct Params { + lsTextDocumentItem textDocument; + + + + /** + * Legacy property to support protocol version 1.0 requests. + */ + boost::optional<std::string> text; + + MAKE_SWAP_METHOD(TextDocumentDidOpen::Params, textDocument, text); + + }; + +} +MAKE_REFLECT_STRUCT(TextDocumentDidOpen::Params, textDocument, text); + +/** + * The document open notification is sent from the client to the server to + * signal newly opened text documents. The document's truth is now managed + * by the client and the server must not try to read the document's truth + * using the document's uri. + * + * Registration Options: TextDocumentRegistrationOptions + */; + + +DEFINE_NOTIFICATION_TYPE(Notify_TextDocumentDidOpen, TextDocumentDidOpen::Params, "textDocument/didOpen"); + |