mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 17:41:58 +00:00
shutdown: id
This commit is contained in:
parent
942a0354d3
commit
b81589f6ed
@ -4,8 +4,9 @@
|
||||
namespace {
|
||||
struct Ipc_Shutdown : public IpcMessage<Ipc_Shutdown> {
|
||||
static const IpcId kIpcId = IpcId::Shutdown;
|
||||
lsRequestId id;
|
||||
};
|
||||
MAKE_REFLECT_EMPTY_STRUCT(Ipc_Shutdown);
|
||||
MAKE_REFLECT_EMPTY_STRUCT(Ipc_Shutdown, id);
|
||||
REGISTER_IPC_MESSAGE(Ipc_Shutdown);
|
||||
|
||||
struct Out_Shutdown : public lsOutMessage<Out_Shutdown> {
|
||||
@ -17,6 +18,7 @@ MAKE_REFLECT_STRUCT(Out_Shutdown, jsonrpc, id, result);
|
||||
struct ShutdownHandler : BaseMessageHandler<Ipc_Shutdown> {
|
||||
void Run(Ipc_Shutdown* request) override {
|
||||
Out_Shutdown out;
|
||||
out.id = request->id;
|
||||
QueueManager::WriteStdout(IpcId::TextDocumentDefinition, out);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user