diff --git a/src/messages/text_document_hover.cc b/src/messages/text_document_hover.cc index 547a14fc..79dee73a 100644 --- a/src/messages/text_document_hover.cc +++ b/src/messages/text_document_hover.cc @@ -3,7 +3,7 @@ namespace { -std::pair, std::string> GetHoverForSymbol( +std::pair, std::string> GetCommentsAndHover( QueryDatabase* db, const SymbolIdx& symbol) { switch (symbol.kind) { @@ -94,12 +94,12 @@ struct TextDocumentHoverHandler : BaseMessageHandler { continue; std::pair, std::string> comments_hover = - GetHoverForSymbol(db, ref.idx); + GetCommentsAndHover(db, ref.idx); if (comments_hover.first || comments_hover.second.size()) { out.result = Out_TextDocumentHover::Result(); if (comments_hover.first) { out.result->contents.emplace_back( - lsMarkedString{file->def->language, *comments_hover.first}); + lsMarkedString{"text", *comments_hover.first}); } if (comments_hover.second.size()) { out.result->contents.emplace_back(