diff options
author | David Schulz <david.schulz@qt.io> | 2020-02-25 13:27:46 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2020-02-25 13:17:05 +0000 |
commit | 45381e9d04c7494978dd5cc6a5854a704ef039ba (patch) | |
tree | 2da0cef7d6f806970249720388af4fc7c709796e /src/plugins/languageclient | |
parent | 83eab470c10f885d54974b30fa8fb0ec4a1f8f23 (diff) | |
download | qt-creator-45381e9d04c7494978dd5cc6a5854a704ef039ba.tar.gz |
LanguageClient: Only send contentsChanged notification to reachable clients
Change-Id: Id35b94d3c6f9b3b08b1e66b992ca5fe86cdab6d5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/languageclient')
-rw-r--r-- | src/plugins/languageclient/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp index 7a8d305550..a704889fe6 100644 --- a/src/plugins/languageclient/client.cpp +++ b/src/plugins/languageclient/client.cpp @@ -466,7 +466,7 @@ void Client::documentContentsChanged(TextEditor::TextDocument *document, int charsRemoved, int charsAdded) { - if (!m_openedDocument.contains(document)) + if (!m_openedDocument.contains(document) || !reachable()) return; const QString method(DidChangeTextDocumentNotification::methodName); TextDocumentSyncKind syncKind = m_serverCapabilities.textDocumentSyncKindHelper(); |