From 6f2a65ec2f99859beae76e5ca0bb40e0c8d77565 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Mon, 21 Oct 2019 11:23:18 +0200 Subject: [PATCH] Revert "fixes #82677" This reverts commit 97b2c927c7e17035037ac2782999e8c413b0b5bc. --- src/vs/workbench/contrib/update/browser/update.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/vs/workbench/contrib/update/browser/update.ts b/src/vs/workbench/contrib/update/browser/update.ts index 599a530d861..72982e625d4 100644 --- a/src/vs/workbench/contrib/update/browser/update.ts +++ b/src/vs/workbench/contrib/update/browser/update.ts @@ -17,6 +17,7 @@ import { IStorageService, StorageScope } from 'vs/platform/storage/common/storag import { IUpdateService, State as UpdateState, StateType, IUpdate } from 'vs/platform/update/common/update'; import * as semver from 'semver-umd'; import { INotificationService, Severity } from 'vs/platform/notification/common/notification'; +import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService'; import { ReleaseNotesManager } from './releaseNotesEditor'; import { isWindows } from 'vs/base/common/platform'; @@ -176,6 +177,7 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu @IStorageService private readonly storageService: IStorageService, @IInstantiationService private readonly instantiationService: IInstantiationService, @INotificationService private readonly notificationService: INotificationService, + @IDialogService private readonly dialogService: IDialogService, @IUpdateService private readonly updateService: IUpdateService, @IActivityService private readonly activityService: IActivityService, @IContextKeyService private readonly contextKeyService: IContextKeyService, @@ -268,11 +270,11 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu } private onUpdateNotAvailable(): void { - this.notificationService.notify({ - severity: Severity.Info, - message: nls.localize('noUpdatesAvailable', "There are currently no updates available."), - source: nls.localize('update service', "Update Service"), - }); + this.dialogService.show( + severity.Info, + nls.localize('noUpdatesAvailable', "There are currently no updates available."), + [nls.localize('ok', "OK")] + ); } // linux