From 3df71f41451a6a2f5f88d19d306be7a04ae35a0d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 25 Dec 2017 21:48:28 -0800 Subject: [PATCH] [hover] Change the first MarkedString's language to "text" --- src/messages/text_document_hover.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(