提交 3a934189 编写于 作者: B Benjamin Pasero

debt - declarative notification service

上级 c32a7dea
......@@ -272,9 +272,6 @@ export class Workbench extends Disposable implements IWorkbenchLayoutService {
// Parts
serviceCollection.set(IWorkbenchLayoutService, this); // TODO@Ben use SyncDescriptor
// Notifications
serviceCollection.set(INotificationService, new SyncDescriptor(NotificationService, undefined, true));
// Window
serviceCollection.set(IWindowService, new SyncDescriptor(WindowService, [this.configuration]));
......
......@@ -7,6 +7,7 @@ import { INotificationService, INotification, INotificationHandle, Severity, Not
import { INotificationsModel, NotificationsModel, ChoiceAction } from 'vs/workbench/common/notifications';
import { dispose, Disposable, IDisposable } from 'vs/base/common/lifecycle';
import { Event } from 'vs/base/common/event';
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
export class NotificationService extends Disposable implements INotificationService {
......@@ -103,4 +104,6 @@ export class NotificationService extends Disposable implements INotificationServ
return handle;
}
}
\ No newline at end of file
}
registerSingleton(INotificationService, NotificationService, true);
\ No newline at end of file
......@@ -116,6 +116,7 @@ import 'vs/workbench/services/extensionManagement/node/multiExtensionManagement'
import 'vs/workbench/services/label/common/labelService';
import 'vs/workbench/services/extensions/node/extensionManagementServerService';
import 'vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl';
import 'vs/workbench/services/notification/common/notificationService';
registerSingleton(IMenuService, MenuService, true);
registerSingleton(IListService, ListService, true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册