From 022510f1e66f2026099b8fa1865e822d89a586bb Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 15 Feb 2022 15:34:41 +0100 Subject: [PATCH] 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: Reviewed-by: David Schulz --- src/plugins/clangcodemodel/clangdclient.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp index ef10edd5eb1..effe6a1f760 100644 --- a/src/plugins/clangcodemodel/clangdclient.cpp +++ b/src/plugins/clangcodemodel/clangdclient.cpp @@ -1307,7 +1307,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);