forked from qt-creator/qt-creator
LanguageClient: Do not send hover requests to unreachable server
Change-Id: Icb4d3516a12b9475967de5ff5dcbf45cf5986195 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -59,7 +59,8 @@ void HoverHandler::identifyMatch(TextEditor::TextEditorWidget *editorWidget,
|
|||||||
{
|
{
|
||||||
if (m_currentRequest.has_value())
|
if (m_currentRequest.has_value())
|
||||||
abort();
|
abort();
|
||||||
if (m_client.isNull() || !m_client->documentOpen(editorWidget->textDocument())) {
|
if (m_client.isNull() || !m_client->documentOpen(editorWidget->textDocument())
|
||||||
|
|| !m_client->reachable()) {
|
||||||
report(Priority_None);
|
report(Priority_None);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user