提交 97b2c927 编写于 作者: J Joao Moreno

fixes #82677

上级 6f08e558
......@@ -17,7 +17,6 @@ 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';
......@@ -177,7 +176,6 @@ 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,
......@@ -270,11 +268,11 @@ export class UpdateContribution extends Disposable implements IWorkbenchContribu
}
private onUpdateNotAvailable(): void {
this.dialogService.show(
severity.Info,
nls.localize('noUpdatesAvailable', "There are currently no updates available."),
[nls.localize('ok', "OK")]
);
this.notificationService.notify({
severity: Severity.Info,
message: nls.localize('noUpdatesAvailable', "There are currently no updates available."),
source: nls.localize('update service', "Update Service"),
});
}
// linux
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册