Port VS Code telemetry opt-in dialog (#1130)

This commit is contained in:
Karl Burtram
2018-04-11 15:47:34 -07:00
committed by GitHub
parent ed10f984b6
commit cd0210c88a
22 changed files with 240 additions and 107 deletions

View File

@@ -282,7 +282,7 @@ export class NotificationsCenter extends Themable {
// Dispose all
while (this.model.notifications.length) {
this.model.notifications[0].dispose();
this.model.notifications[0].close();
}
}
}

View File

@@ -115,7 +115,7 @@ export function registerNotificationCommands(center: INotificationsCenterControl
handler: (accessor, args?: any) => {
const notification = getNotificationFromContext(accessor.get(IListService), args);
if (notification) {
notification.dispose();
notification.close();
}
}
});

View File

@@ -164,7 +164,7 @@ export class NotificationsToasts extends Themable {
}));
// Remove when item gets disposed
once(item.onDidDispose)(() => {
once(item.onDidClose)(() => {
this.removeToast(item);
});

View File

@@ -440,7 +440,7 @@ export class NotificationTemplateRenderer {
this.actionRunner.run(action, notification);
// Hide notification
notification.dispose();
notification.close();
}));
this.inputDisposeables.push(attachButtonStyler(button, this.themeService));