@@ -189,11 +189,11 @@ export default class extends Generator {
189
189
190
190
// Git init
191
191
if ( this . extensionConfig . gitInit ) {
192
- this . spawnCommand ( 'git' , [ 'init' , '--quiet' ] ) ;
192
+ await this . spawn ( 'git' , [ 'init' , '--quiet' ] ) ;
193
193
}
194
194
195
195
if ( this . extensionConfig . proposedAPI ) {
196
- this . spawnCommand ( this . extensionConfig . pkgManager , [ 'run' , 'update-proposed-api' ] ) ;
196
+ await this . spawn ( this . extensionConfig . pkgManager , [ 'run' , 'update-proposed-api' ] ) ;
197
197
}
198
198
this . log ( '' ) ;
199
199
@@ -228,20 +228,20 @@ export default class extends Generator {
228
228
if ( this . options [ "open" ] ) {
229
229
if ( codeStableLocation ) {
230
230
this . log ( `Opening ${ this . destinationPath ( ) } in Visual Studio Code...` ) ;
231
- this . spawnCommand ( codeStableLocation , [ this . destinationPath ( ) ] ) ;
231
+ await this . spawn ( codeStableLocation , [ this . destinationPath ( ) ] ) ;
232
232
} else {
233
233
this . log ( `'code' command not found.` ) ;
234
234
}
235
235
} else if ( this . options [ "openInInsiders" ] ) {
236
236
if ( codeInsidersLocation ) {
237
237
this . log ( `Opening ${ this . destinationPath ( ) } with Visual Studio Code Insiders...` ) ;
238
- this . spawnCommand ( codeInsidersLocation , [ this . destinationPath ( ) ] ) ;
238
+ await this . spawn ( codeInsidersLocation , [ this . destinationPath ( ) ] ) ;
239
239
} else {
240
240
this . log ( `'code-insiders' command not found.` ) ;
241
241
}
242
242
} else if ( codeInsidersLocation || codeStableLocation ) {
243
243
if ( this . options [ "quick" ] ) {
244
- this . spawnCommand ( codeInsidersLocation || codeStableLocation , [ this . destinationPath ( ) ] ) ;
244
+ await this . spawn ( codeInsidersLocation || codeStableLocation , [ this . destinationPath ( ) ] ) ;
245
245
} else {
246
246
const choices = [ ] ;
247
247
if ( codeInsidersLocation ) {
@@ -259,7 +259,7 @@ export default class extends Generator {
259
259
choices
260
260
} ) ;
261
261
if ( answer && answer . openWith && answer . openWith !== 'skip' ) {
262
- this . spawnCommand ( answer . openWith , [ this . destinationPath ( ) ] ) ;
262
+ await this . spawn ( answer . openWith , [ this . destinationPath ( ) ] ) ;
263
263
}
264
264
}
265
265
}
0 commit comments