| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "LibLsp/JsonRpc/NotificationInMessage.h" |
| 4 |
#include "LibLsp/lsp/lsAny.h" |
| 5 |
//The base protocol offers also support to report progress in a generic fashion. |
| 6 |
//This mechanism can be used to report any kind of progress including work done |
| 7 |
//progress(usually used to report progress in the user interface using a progress bar) |
| 8 |
//and partial result progress to support streaming of results. |
| 9 |
struct ProgressParams |
| 10 |
{ |
| 11 |
std::pair<optional<std::string>, optional<int>> token; |
| 12 |
lsp::Any value; |
| 13 |
MAKE_SWAP_METHOD(ProgressParams, token, value) |
| 14 |
}; |
| 15 |
MAKE_REFLECT_STRUCT(ProgressParams, token, value) |
| 16 |
DEFINE_NOTIFICATION_TYPE(Notify_Progress, ProgressParams, "$/progress"); |