aboutsummaryrefslogtreecommitdiffstats
path: root/qt-cpp
diff options
context:
space:
mode:
authorOrkun Tokdemir <orkun.tokdemir@qt.io>2024-09-26 18:20:38 +0200
committerOrkun Tokdemir <orkun.tokdemir@qt.io>2024-10-11 12:24:45 +0000
commit0c56835acb00aa36cbd7f21d632fc687721a6e55 (patch)
treebe800107a04833a287f249480f1eef3409c73434 /qt-cpp
parent31aa5726dbbc8eae0786900553c90d972ad10b38 (diff)
qt-cpp: Add progress bar for generating kits
Change-Id: I726dc6387709d99df874188a3254353428682493 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'qt-cpp')
-rw-r--r--qt-cpp/src/kit-manager.ts22
1 files changed, 19 insertions, 3 deletions
diff --git a/qt-cpp/src/kit-manager.ts b/qt-cpp/src/kit-manager.ts
index 609a4f5..c120c4b 100644
--- a/qt-cpp/src/kit-manager.ts
+++ b/qt-cpp/src/kit-manager.ts
@@ -165,8 +165,16 @@ export class KitManager {
}
public async checkForAllQtInstallations() {
- await this.checkForGlobalQtInstallations();
- await this.checkForWorkspaceFolderQtInstallations();
+ await vscode.window.withProgress(
+ {
+ location: vscode.ProgressLocation.Notification,
+ title: 'Updating kits'
+ },
+ async () => {
+ await this.checkForGlobalQtInstallations();
+ await this.checkForWorkspaceFolderQtInstallations();
+ }
+ );
}
// If the project parameter is undefined, it means that it is a global check
@@ -234,7 +242,15 @@ export class KitManager {
if (qtInsRoot) {
KitManager.showQtInstallationsMessage(qtInsRoot, qtInstallations);
}
- await this.updateQtKits(qtInsRoot, qtInstallations, workspaceFolder);
+ void vscode.window.withProgress(
+ {
+ location: vscode.ProgressLocation.Notification,
+ title: 'Updating kits'
+ },
+ async () => {
+ await this.updateQtKits(qtInsRoot, qtInstallations, workspaceFolder);
+ }
+ );
}
private static generateKitsFromQtPathsInfo(qtPaths: QtAdditionalPath[]) {