Skip to content

Commit 5ebffcc

Browse files
authored
tests on Mac fail with ENOTEMPTY: directory not empty (microsoft#455)
1 parent b16dd88 commit 5ebffcc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

generators/app/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ export default class extends Generator {
189189

190190
// Git init
191191
if (this.extensionConfig.gitInit) {
192-
this.spawnCommand('git', ['init', '--quiet']);
192+
await this.spawn('git', ['init', '--quiet']);
193193
}
194194

195195
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']);
197197
}
198198
this.log('');
199199

@@ -228,20 +228,20 @@ export default class extends Generator {
228228
if (this.options["open"]) {
229229
if (codeStableLocation) {
230230
this.log(`Opening ${this.destinationPath()} in Visual Studio Code...`);
231-
this.spawnCommand(codeStableLocation, [this.destinationPath()]);
231+
await this.spawn(codeStableLocation, [this.destinationPath()]);
232232
} else {
233233
this.log(`'code' command not found.`);
234234
}
235235
} else if (this.options["openInInsiders"]) {
236236
if (codeInsidersLocation) {
237237
this.log(`Opening ${this.destinationPath()} with Visual Studio Code Insiders...`);
238-
this.spawnCommand(codeInsidersLocation, [this.destinationPath()]);
238+
await this.spawn(codeInsidersLocation, [this.destinationPath()]);
239239
} else {
240240
this.log(`'code-insiders' command not found.`);
241241
}
242242
} else if (codeInsidersLocation || codeStableLocation) {
243243
if (this.options["quick"]) {
244-
this.spawnCommand(codeInsidersLocation || codeStableLocation, [this.destinationPath()]);
244+
await this.spawn(codeInsidersLocation || codeStableLocation, [this.destinationPath()]);
245245
} else {
246246
const choices = [];
247247
if (codeInsidersLocation) {
@@ -259,7 +259,7 @@ export default class extends Generator {
259259
choices
260260
});
261261
if (answer && answer.openWith && answer.openWith !== 'skip') {
262-
this.spawnCommand(answer.openWith, [this.destinationPath()]);
262+
await this.spawn(answer.openWith, [this.destinationPath()]);
263263
}
264264
}
265265
}

0 commit comments

Comments
 (0)