From ba1d053db03ceee3f3e4f02c07c4f22c25c36ab1 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Wed, 26 Jun 2024 21:39:53 +0200 Subject: [PATCH] Add traces during postponing --- src/LanguageServer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LanguageServer.cpp b/src/LanguageServer.cpp index 49bb0c3e..16785753 100644 --- a/src/LanguageServer.cpp +++ b/src/LanguageServer.cpp @@ -355,6 +355,7 @@ void LanguageServer::handleMessage(const json_rpc::JsonRpcMessage& msg) { if (isInitialized && !allWorkspacesConfigured()) { + client->sendTrace("workspaces not configured, postponing message: " + msg.id.value()); configPostponedMessages.emplace_back(msg); return; } @@ -391,10 +392,12 @@ void LanguageServer::processInputLoop() { if (configPostponedMessages.size() > 0 && allWorkspacesConfigured()) { + client->sendTrace("workspaces configured, handling postponed messages"); for (const auto& msg : configPostponedMessages) handleMessage(msg); configPostponedMessages.clear(); + client->sendTrace("workspaces configured, handling postponed COMPLETED"); } if (client->readRawMessage(jsonString))