Skip to content

Commit

Permalink
fix: Don't log anything on hover
Browse files Browse the repository at this point in the history
Otherwise, there's a createRangeMark method logged when showing lsp
documentation for the symbol.
  • Loading branch information
narnaud committed Nov 29, 2024
1 parent c1d6211 commit 52ab04d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/lsp_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "lsp_utils.h"
#include "codedocument.h"
#include "logger.h"
#include "project.h"
#include "textdocument.h"

Expand Down Expand Up @@ -46,6 +47,7 @@ int lspToPos(const TextDocument &textDocument, const Lsp::Position &pos)

RangeMark lspToRange(const TextDocument &textDocument, const Lsp::Range &range)
{
LoggerDisabler disabler;
// I know, ugly, but that's the easiest to do that here.
auto document = const_cast<TextDocument *>(&textDocument);
return document->createRangeMark(lspToPos(textDocument, range.start), lspToPos(textDocument, range.end));
Expand Down

0 comments on commit 52ab04d

Please sign in to comment.