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 }