mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Port VS Code telemetry opt-in dialog (#1130)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -164,7 +164,7 @@ export class NotificationsToasts extends Themable {
|
||||
}));
|
||||
|
||||
// Remove when item gets disposed
|
||||
once(item.onDidDispose)(() => {
|
||||
once(item.onDidClose)(() => {
|
||||
this.removeToast(item);
|
||||
});
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user