From 1069791db98b778fccb7de8b1b966ec27fbd689b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Wed, 15 Jul 2020 15:59:29 +0200 Subject: [PATCH] Revert "fixes #100016" This reverts commit 7729e9c0810a78bddd8cf760ebbdb28202e6b1ea. --- src/vs/workbench/contrib/update/browser/update.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/update/browser/update.ts b/src/vs/workbench/contrib/update/browser/update.ts index 568cbec7112..edbb02d3d6b 100644 --- a/src/vs/workbench/contrib/update/browser/update.ts +++ b/src/vs/workbench/contrib/update/browser/update.ts @@ -16,6 +16,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'; @@ -178,6 +179,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, @@ -276,7 +278,11 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu } private onUpdateNotAvailable(): void { - this.notificationService.info(nls.localize('noUpdatesAvailable', "There are currently no updates available.")); + this.dialogService.show( + severity.Info, + nls.localize('noUpdatesAvailable', "There are currently no updates available."), + [nls.localize('ok', "OK")] + ); } // linux