From b9eb6f06a842880859967d0467d6a3ee6302fcc2 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Fri, 25 Aug 2023 15:36:47 +0200 Subject: [PATCH] fix: use npx to spawn artillery cli (#17) --- src/extension.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 354fcc7..40078e3 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -49,13 +49,7 @@ export async function activate(context: vscode.ExtensionContext) { const terminal = vscode.window.createTerminal() terminal.show() - /** - * @todo Check if the Artillery CLI is installed. - * If not, prompt to install it. - * We can also have an "Install Artillery CLI" as a command, - * reusing it here. - */ - const runCommand = `artillery run ${testScriptPath}` + const runCommand = `npx artillery run ${testScriptPath}` terminal.sendText(runCommand, true) }, ),