From b663c29774999a9219ceee70e30ed6390d0d230c Mon Sep 17 00:00:00 2001 From: Mark McCulloh Date: Thu, 4 Jul 2024 18:45:20 -0400 Subject: [PATCH] fix(vscode): extension can't find wing cli (#6850) Fixes #6849 *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- apps/vscode-wing/src/bin-helper.ts | 2 +- tools/hangar/src/benchmarking/cli.bench.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/vscode-wing/src/bin-helper.ts b/apps/vscode-wing/src/bin-helper.ts index 3fbc9b1a7f6..be11338b6ce 100644 --- a/apps/vscode-wing/src/bin-helper.ts +++ b/apps/vscode-wing/src/bin-helper.ts @@ -39,7 +39,7 @@ async function guidedWingInstallation() { export async function updateStatusBar(wingBin: string) { let version = "not found"; try { - version = await executeCommand(`"${wingBin}" -V --no-update-check`); + version = await executeCommand(`"${wingBin}" --version --no-update-check`); } catch (e) { Loggers.default.appendLine( `Failed to get wing version from ${wingBin}: ${e}` diff --git a/tools/hangar/src/benchmarking/cli.bench.ts b/tools/hangar/src/benchmarking/cli.bench.ts index 95cf88979be..49e7ef67859 100644 --- a/tools/hangar/src/benchmarking/cli.bench.ts +++ b/tools/hangar/src/benchmarking/cli.bench.ts @@ -15,7 +15,7 @@ describe("compile", async () => { bench("version", async () => { await runWingCommand({ cwd: benchmarksTestDir, - args: ["-V"], + args: ["--version"], expectFailure: false, }); });