Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Jan 8, 2024
1 parent 71dfc4b commit dfaadbb
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions extension/src/dependency-installer/installers/flow-cli-installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}]
)
}
}
Expand All @@ -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
}
Expand Down

0 comments on commit dfaadbb

Please sign in to comment.