forked from qt-creator/qt-creator
ClangCodeModel: Fix flaky clangd completion test
Change-Id: I38e283146d43a9ce6e9cb07dfc5b0e9ea7eb2a76 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -2647,6 +2647,7 @@ void ClangdClient::Private::handleSemanticTokens(TextDocument *doc,
|
||||
<< version << q->documentVersion(doc->filePath());
|
||||
return;
|
||||
}
|
||||
force = force || isTesting;
|
||||
const auto previous = previousTokens.find(doc);
|
||||
if (previous != previousTokens.end()) {
|
||||
if (!force && previous->first == tokens && previous->second == version) {
|
||||
|
||||
Reference in New Issue
Block a user