Skip to content

Commit

Permalink
feat: progress bar when adding device to explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Mar 22, 2022
1 parent 06c7ae7 commit 19023ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},
};
}
Expand Down

0 comments on commit 19023ae

Please sign in to comment.