forked from qt-creator/qt-creator
ClangCodeModel: Mention project name in clangd indexing message
This will help avoid confusion in case of multi-project sessions. We also shorten the message a bit so it won't be cut off in the progress bar before the project name. Change-Id: I0e5885f89a976b14f758f9be77e7669f199cd887 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1307,7 +1307,10 @@ ClangdClient::ClangdClient(Project *project, const Utils::FilePath &jsonDbDir)
|
|||||||
setClientCapabilities(caps);
|
setClientCapabilities(caps);
|
||||||
setLocatorsEnabled(false);
|
setLocatorsEnabled(false);
|
||||||
setAutoRequestCodeActions(false); // clangd sends code actions inside diagnostics
|
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);
|
setCurrentProject(project);
|
||||||
setDocumentChangeUpdateThreshold(d->settings.documentUpdateThreshold);
|
setDocumentChangeUpdateThreshold(d->settings.documentUpdateThreshold);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user