Skip to content

Commit

Permalink
Revert "fixes #82677"
Browse files Browse the repository at this point in the history
This reverts commit 97b2c92.
  • Loading branch information
joaomoreno authored and jrieken committed Oct 21, 2019
1 parent 1817f3d commit 8d53129
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/vs/workbench/contrib/update/browser/update.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8d53129

Please sign in to comment.