forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/7.0'
Conflicts: src/plugins/mcusupport/mcupackage.cpp src/plugins/mcusupport/mcusupportoptions.cpp src/plugins/mcusupport/mcusupportoptions.h src/plugins/mcusupport/mcusupportoptionspage.cpp src/plugins/mcusupport/mcusupportplugin.cpp src/plugins/mcusupport/mcusupportsdk.cpp Change-Id: Ib423e9f23877176f01b188104b0a179ed32c4770
This commit is contained in:
@@ -1402,7 +1402,10 @@ ClangdClient::ClangdClient(Project *project, const Utils::FilePath &jsonDbDir)
|
||||
setClientCapabilities(caps);
|
||||
setLocatorsEnabled(false);
|
||||
setAutoRequestCodeActions(false); // clangd sends code actions inside diagnostics
|
||||
setProgressTitleForToken(indexingToken(), tr("Parsing C/C++ Files (clangd)"));
|
||||
if (project) {
|
||||
setProgressTitleForToken(indexingToken(),
|
||||
tr("Indexing %1 with clangd").arg(project->displayName()));
|
||||
}
|
||||
setCurrentProject(project);
|
||||
setDocumentChangeUpdateThreshold(d->settings.documentUpdateThreshold);
|
||||
|
||||
@@ -2958,9 +2961,10 @@ void ClangdClient::Private::handleSemanticTokens(TextDocument *doc,
|
||||
int version, bool force)
|
||||
{
|
||||
SubtaskTimer t(highlightingTimer);
|
||||
qCDebug(clangdLog) << "handling LSP tokens" << doc->filePath() << tokens.size();
|
||||
qCInfo(clangdLogHighlight) << "handling LSP tokens" << doc->filePath()
|
||||
<< version << tokens.size();
|
||||
if (version != q->documentVersion(doc->filePath())) {
|
||||
qCDebug(clangdLogHighlight) << "LSP tokens outdated; aborting highlighting procedure"
|
||||
qCInfo(clangdLogHighlight) << "LSP tokens outdated; aborting highlighting procedure"
|
||||
<< version << q->documentVersion(doc->filePath());
|
||||
return;
|
||||
}
|
||||
@@ -2968,7 +2972,7 @@ void ClangdClient::Private::handleSemanticTokens(TextDocument *doc,
|
||||
const auto previous = previousTokens.find(doc);
|
||||
if (previous != previousTokens.end()) {
|
||||
if (!force && previous->first == tokens && previous->second == version) {
|
||||
qCDebug(clangdLogHighlight) << "tokens and version same as last time; nothing to do";
|
||||
qCInfo(clangdLogHighlight) << "tokens and version same as last time; nothing to do";
|
||||
return;
|
||||
}
|
||||
previous->first = tokens;
|
||||
@@ -2985,7 +2989,7 @@ void ClangdClient::Private::handleSemanticTokens(TextDocument *doc,
|
||||
if (!q->documentOpen(doc))
|
||||
return;
|
||||
if (version != q->documentVersion(doc->filePath())) {
|
||||
qCDebug(clangdLogHighlight) << "AST not up to date; aborting highlighting procedure"
|
||||
qCInfo(clangdLogHighlight) << "AST not up to date; aborting highlighting procedure"
|
||||
<< version << q->documentVersion(doc->filePath());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user