File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,15 +110,19 @@ export async function handleInstallPackDependencies(
110110 canPickMany : true ,
111111 ignoreFocusOut : true ,
112112 } ) ;
113- if ( packsToInstall && packsToInstall . length > 0 ) {
114- progress ( {
115- message : 'Installing dependencies. This may take a few minutes.' ,
116- step : 2 ,
117- maxStep : 2 ,
118- } ) ;
113+ const numberOfPacks = packsToInstall ?. length || 0 ;
114+ if ( packsToInstall && numberOfPacks > 0 ) {
119115 const failedPacks = [ ] ;
120116 const errors = [ ] ;
117+ // Start at 1 because we already have the first step
118+ let count = 1 ;
121119 for ( const pack of packsToInstall ) {
120+ count ++ ;
121+ progress ( {
122+ message : `Installing dependencies for ${ pack . label } ` ,
123+ step : count ,
124+ maxStep : numberOfPacks + 1 ,
125+ } ) ;
122126 try {
123127 for ( const dir of pack . packRootDir ) {
124128 await cliServer . packInstall ( dir ) ;
You can’t perform that action at this time.
0 commit comments