forked from qt-creator/qt-creator
LanguageClient: allow aborting hover handler on unreachable clients
Change-Id: I1163144de7d37d3e270e31f2bf523ba812a937a5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -639,7 +639,8 @@ void Client::sendMessage(const JsonRpcMessage &message, SendDocUpdates sendUpdat
|
||||
void Client::cancelRequest(const MessageId &id)
|
||||
{
|
||||
d->m_responseHandlers.remove(id);
|
||||
sendMessage(CancelRequest(CancelParameter(id)), SendDocUpdates::Ignore);
|
||||
if (reachable())
|
||||
sendMessage(CancelRequest(CancelParameter(id)), SendDocUpdates::Ignore);
|
||||
}
|
||||
|
||||
void Client::closeDocument(TextEditor::TextDocument *document)
|
||||
|
||||
Reference in New Issue
Block a user