aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2022-08-09 17:05:07 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2022-08-10 11:14:56 +0000
commit9c963ce8aee3c181cef20e2b86dfd2aefc607a4a (patch)
tree341c19e4fbdcf19281cfc338b47dc47f15111ffb
parent93fbef4de62b6c46ba569ed8c3601c88ec94102d (diff)
LanguageClient: Do not clear shadow documents on resetv8.0.1
We need to preserve this information. Instead, clear only the list of reverse document dependencies. Change-Id: I5589d5e3eff613706ea5f2029df1f90eacbbbb4e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r--src/plugins/languageclient/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp
index e57700133d..eeb1499a74 100644
--- a/src/plugins/languageclient/client.cpp
+++ b/src/plugins/languageclient/client.cpp
@@ -1533,7 +1533,8 @@ bool ClientPrivate::reset()
qDeleteAll(m_documentHighlightsTimer);
m_documentHighlightsTimer.clear();
m_progressManager.reset();
- m_shadowDocuments.clear();
+ for (auto &doc : m_shadowDocuments)
+ doc.second.clear();
m_documentVersions.clear();
return true;
}