From 19023ae5090d9b153280e2e6a3c78987cce420bf Mon Sep 17 00:00:00 2001 From: Jakob Rosenberg Date: Tue, 22 Mar 2022 10:39:51 +0100 Subject: [PATCH] feat: progress bar when adding device to explorer --- src/commands/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/index.js b/src/commands/index.js index ff67b7d2..b0c7a04b 100644 --- a/src/commands/index.js +++ b/src/commands/index.js @@ -488,6 +488,10 @@ class Commands { const wsPos = vscode.workspace.workspaceFolders?.length || 0; vscode.workspace.updateWorkspaceFolders(wsPos, 0, { uri, name }); + vscode.window.withProgress({ location: vscode.ProgressLocation.Notification }, async (token) => { + token.report({ message: "Adding device to explorer..." }); + }); + return new Promise((resolve) => vscode.workspace.onDidChangeWorkspaceFolders(resolve)); }, }; }