LanguageClient: Only send position changed signals to reachable clients

Change-Id: I0d387ea10aeba8f5f1be3d0ddb6a6ccb82e04e64
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2020-02-25 13:27:03 +01:00
parent 63e9c4c31a
commit 83eab470c1

View File

@@ -397,7 +397,8 @@ void LanguageClientManager::editorOpened(Core::IEditor *editor)
if (!widget)
return;
if (Client *client = clientForDocument(widget->textDocument()))
client->cursorPositionChanged(widget);
if (client->reachable())
client->cursorPositionChanged(widget);
});
});
updateEditorToolBar(editor);