From 7c1d53b186e3e0ee8142efcd25c5cf3b41bb54a6 Mon Sep 17 00:00:00 2001 From: Felipe Lema <1232306+FelipeLema@users.noreply.github.com> Date: Mon, 16 Aug 2021 18:49:40 -0400 Subject: [PATCH] improve log messages: add info --- src/messages/textDocument_semanticToken.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/messages/textDocument_semanticToken.cc b/src/messages/textDocument_semanticToken.cc index 4d67a1f6..7b1bd9c9 100644 --- a/src/messages/textDocument_semanticToken.cc +++ b/src/messages/textDocument_semanticToken.cc @@ -59,7 +59,7 @@ constexpr Position documentEnd{ std::numeric_limits::max()}; inline std::ostream &operator<<(std::ostream &s, const Position pos) { - s << "{line: " << pos.line << ", end: " << pos.character; + s << "{line: " << pos.line << ", end: " << pos.character << "}"; return s; } inline std::ostream &operator<<(std::ostream &s, const lsRange &range) { @@ -69,12 +69,12 @@ inline std::ostream &operator<<(std::ostream &s, const lsRange &range) { void MessageHandler::textDocument_semanticTokensRange( SemanticTokensRangeParams ¶m, ReplyOnce &reply) { + const std::string path = param.textDocument.uri.getPath(); if (param.range.start == documentBegin && param.range.end == documentEnd) - LOG_S(INFO) << "SemanticToken for all document"; + LOG_S(INFO) << "SemanticToken for all document of " << path; else - LOG_S(INFO) << "SemanticToken for range " << param.range.start; + LOG_S(INFO) << "SemanticToken for range " << param.range.start << " of " << path; - std::string path = param.textDocument.uri.getPath(); WorkingFile *wfile = wfiles->getFile(path); if (!wfile) { reply.notOpened(path);