diff --git a/extensions/cli/src/services/UpdateService.ts b/extensions/cli/src/services/UpdateService.ts index cdf1971349a..e9759b6ce64 100644 --- a/extensions/cli/src/services/UpdateService.ts +++ b/extensions/cli/src/services/UpdateService.ts @@ -170,17 +170,15 @@ export class UpdateService extends BaseService { this.setState({ status: UpdateStatus.UPDATED, - message: `${isAutoUpdate ? "Auto-updated to" : "Restart for"} v${this.currentState.latestVersion}`, + message: `Updated to v${this.currentState.latestVersion}`, isUpdateAvailable: false, }); - if (isAutoUpdate) { - this.restartCLI(); - } + this.restartCLI(); } catch (error: any) { logger.error("Error updating CLI:", error); this.setState({ status: UpdateStatus.ERROR, - message: isAutoUpdate ? "Auto-update failed" : "Update failed", + message: "Update failed", error, }); setTimeout(() => {