Skip to content

Commit

Permalink
fix(windows): create Project via PowerShell Terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Sep 3, 2024
1 parent 6835805 commit 295408c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ export async function installPlaywright(vscode: vscodeTypes.VSCode) {
if (result.includes(installDepsItem))
args.push('--install-deps');

terminal.sendText(`npm init playwright@latest --yes -- --quiet ${args.join(' ')}`, true);
terminal.sendText(`npm init playwright@latest --yes ${quote('--')} ${quote('--quiet')} ${args.map(quote).join(' ')}`, true);
}

function quote(s: string): string {
return `'${s}'`;
}

export async function installBrowsers(vscode: vscodeTypes.VSCode, model: TestModel) {
Expand Down

0 comments on commit 295408c

Please sign in to comment.