From b81589f6ed306a7e4b43ecb3c1f2a5af37d1ce29 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 13 Jan 2018 11:39:06 -0800 Subject: [PATCH] shutdown: id --- src/messages/shutdown.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/messages/shutdown.cc b/src/messages/shutdown.cc index cb6c85f1..7a853020 100644 --- a/src/messages/shutdown.cc +++ b/src/messages/shutdown.cc @@ -4,8 +4,9 @@ namespace { struct Ipc_Shutdown : public IpcMessage { 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 { @@ -17,6 +18,7 @@ MAKE_REFLECT_STRUCT(Out_Shutdown, jsonrpc, id, result); struct ShutdownHandler : BaseMessageHandler { void Run(Ipc_Shutdown* request) override { Out_Shutdown out; + out.id = request->id; QueueManager::WriteStdout(IpcId::TextDocumentDefinition, out); } };