| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "LibLsp/JsonRpc/NotificationInMessage.h" |
| 4 |
|
| 5 |
namespace TextDocumentDidSave |
| 6 |
{ |
| 7 |
|
| 8 |
struct Params |
| 9 |
{ |
| 10 |
// The document that was saved. |
| 11 |
lsTextDocumentIdentifier textDocument; |
| 12 |
|
| 13 |
// Optional the content when saved. Depends on the includeText value |
| 14 |
// when the save notifcation was requested. |
| 15 |
optional<std::string> text; |
| 16 |
|
| 17 |
MAKE_SWAP_METHOD(TextDocumentDidSave::Params, textDocument, text); |
| 18 |
}; |
| 19 |
|
| 20 |
}; // namespace TextDocumentDidSave |
| 21 |
MAKE_REFLECT_STRUCT(TextDocumentDidSave::Params, textDocument, text); |
| 22 |
|
| 23 |
/** |
| 24 |
* The document save notification is sent from the client to the server when |
| 25 |
* the document for saved in the client. |
| 26 |
* |
| 27 |
* Registration Options: TextDocumentSaveRegistrationOptions |
| 28 |
*/ |
| 29 |
DEFINE_NOTIFICATION_TYPE(Notify_TextDocumentDidSave, TextDocumentDidSave::Params, "textDocument/didSave"); |