From dfaadbbb5d3d934ad1e79482f1bcc0dc0fefbcf1 Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Mon, 8 Jan 2024 15:30:27 -0800 Subject: [PATCH] fix test --- .../installers/flow-cli-installer.ts | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/extension/src/dependency-installer/installers/flow-cli-installer.ts b/extension/src/dependency-installer/installers/flow-cli-installer.ts index 99b98bba..6d7d62e9 100644 --- a/extension/src/dependency-installer/installers/flow-cli-installer.ts +++ b/extension/src/dependency-installer/installers/flow-cli-installer.ts @@ -87,11 +87,13 @@ export class InstallFlowCLI extends Installer { if (latest != null && latestStr != null && semver.compare(latest, currentVersion) === 1) { promptUserInfoMessage( 'There is a new Flow CLI version available: ' + latestStr, - 'Install latest Flow CLI', - async () => { - await this.runInstall() - await this.#context.refreshDependencies() - } + [{ + label: 'Install latest Flow CLI', + callback: async () => { + await this.runInstall() + await this.#context.refreshDependencies() + } + }] ) } } @@ -106,11 +108,13 @@ export class InstallFlowCLI extends Installer { })) { promptUserErrorMessage( 'Incompatible Flow CLI version: ' + version.format(), - 'Install latest Flow CLI', - async () => { - await this.runInstall() - await this.#context.refreshDependencies() - } + [{ + label: 'Install latest Flow CLI', + callback: async () => { + await this.runInstall() + await this.#context.refreshDependencies() + } + }] ) return false }