From 03324a122e78b585ea2cb644f0b8e05dbdb9b160 Mon Sep 17 00:00:00 2001 From: Felipe Lema <1232306+FelipeLema@users.noreply.github.com> Date: Tue, 22 Jun 2021 15:25:30 -0400 Subject: [PATCH] correct usage of "empty (list) of params" lsp-mode was complaining that generated json was not properly parsed --- src/message_handler.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/message_handler.cc b/src/message_handler.cc index c533d834..15121460 100644 --- a/src/message_handler.cc +++ b/src/message_handler.cc @@ -243,11 +243,7 @@ void emitSkippedRanges(WorkingFile *wfile, QueryFile &file) { void emitSemanticHighlightRefresh() { - //// tried using `notify`, but won't compile - //EmptyParam empty; - //pipeline::notify("workspace/semanticTokens/refresh", empty); - - pipeline::notifyOrRequest( - "workspace/semanticTokens/refresh", false, [](JsonWriter &){}); + std::vector emptyParameters{}; // notification with no parameters (empty list) + pipeline::notify("workspace/semanticTokens/refresh", emptyParameters); } } // namespace ccls