forked from qt-creator/qt-creator
LanguageClient: fix dynamic registered hover provider
Change-Id: I48580b84c310c69ff72fba743260806bd236752f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user