aboutsummaryrefslogtreecommitdiffstats
path: root/qt-cpp/src/kit-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'qt-cpp/src/kit-manager.ts')
-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[]) {