Merge VS Code 1.31.1 (#4283)

This commit is contained in:
Matt Irvine
2019-03-15 13:09:45 -07:00
committed by GitHub
parent 7d31575149
commit 86bac90001
1716 changed files with 53308 additions and 48375 deletions

View File

@@ -6,7 +6,7 @@
import { INotificationService, INotification, INotificationHandle, Severity, NotificationMessage, INotificationActions, IPromptChoice, IPromptOptions } from 'vs/platform/notification/common/notification';
import { INotificationsModel, NotificationsModel, ChoiceAction } from 'vs/workbench/common/notifications';
import { dispose, Disposable, IDisposable } from 'vs/base/common/lifecycle';
import { once } from 'vs/base/common/event';
import { Event } from 'vs/base/common/event';
export class NotificationService extends Disposable implements INotificationService {
@@ -90,7 +90,7 @@ export class NotificationService extends Disposable implements INotificationServ
// Show notification with actions
handle = this.notify({ severity, message, actions, sticky: options && options.sticky, silent: options && options.silent });
once(handle.onDidClose)(() => {
Event.once(handle.onDidClose)(() => {
// Cleanup when notification gets disposed
dispose(toDispose);