From a8a3cd4f91a0d3ebba5713f5c94f759addd494a7 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 9 Jul 2021 14:09:36 +0200 Subject: [PATCH] LanguageClient: directly update document highlights on changes If the document highlights are requested after a timeout the document might have changed again inbetween leading to another document change notification that gets send to the server. Change-Id: I476e833c55e1bed96c9bd49ee2f17915ee3536a2 Reviewed-by: Christian Kandeler --- src/plugins/languageclient/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp index aaf8d3caba5..9a42f38ef9e 100644 --- a/src/plugins/languageclient/client.cpp +++ b/src/plugins/languageclient/client.cpp @@ -1195,7 +1195,7 @@ void Client::sendPostponedDocumentUpdates() emit documentUpdated(update.document); if (currentWidget && currentWidget->textDocument() == update.document) - cursorPositionChanged(currentWidget); + requestDocumentHighlights(currentWidget); m_tokentSupport.updateSemanticTokens(update.document); }