From 90746d86232f6e5525fd6f619e3baf28edc31d6c Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 20 Jan 2021 13:29:12 +0100 Subject: [PATCH] LanguageClient: fix dynamic registered hover provider Change-Id: I48580b84c310c69ff72fba743260806bd236752f Reviewed-by: Christian Stenger --- src/plugins/languageclient/languageclienthoverhandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/languageclient/languageclienthoverhandler.cpp b/src/plugins/languageclient/languageclienthoverhandler.cpp index b0ff1c28644..e95760b8b27 100644 --- a/src/plugins/languageclient/languageclienthoverhandler.cpp +++ b/src/plugins/languageclient/languageclienthoverhandler.cpp @@ -59,9 +59,7 @@ void HoverHandler::identifyMatch(TextEditor::TextEditorWidget *editorWidget, { if (m_currentRequest.has_value()) abort(); - if (m_client.isNull() - || !m_client->documentOpen(editorWidget->textDocument()) - || !m_client->capabilities().hoverProvider().value_or(false)) { + if (m_client.isNull() || !m_client->documentOpen(editorWidget->textDocument())) { report(Priority_None); return; }