Skip to content

Commit

Permalink
fix yesNoQuestion
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Oct 30, 2023
1 parent 2f2d152 commit c660bfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/createApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ export async function createApplication (): Promise<void> {
progress.report({ message: l10n.t('Creating application') });
await ExtensionContainer.terminal.runInBackground('ti', args);

alloy = await yesNoQuestion({ placeHolder: l10n.t('Create an Alloy project?') }, true);
alloy = await yesNoQuestion({ placeHolder: l10n.t('Create an Alloy project?') }, false);
if (alloy) {
progress.report({ message: l10n.t('Creating Alloy project') });
const alloyArgs = [ 'new' ];
if (force) {
alloyArgs.push('--force');
}
await ExtensionContainer.terminal.runInBackground('alloy', [ 'new' ], { cwd: path.join(workspaceDir.fsPath, name) });
} else {
progress.report({ message: l10n.t('Creating Classic project') });
}
return;
});
Expand Down

0 comments on commit c660bfc

Please sign in to comment.