diff --git a/src/vs/workbench/services/notification/common/notificationService.ts b/src/vs/workbench/services/notification/common/notificationService.ts index 0d1e8d4ef9cbf8ace1429a878c02b97ea567dafb..71dd806f44653ba94f4d530b569cdc31d0060356 100644 --- a/src/vs/workbench/services/notification/common/notificationService.ts +++ b/src/vs/workbench/services/notification/common/notificationService.ts @@ -55,7 +55,6 @@ export class NotificationService extends Disposable implements INotificationServ } prompt(severity: Severity, message: string, choices: IPromptChoice[], onCancel?: () => void): INotificationHandle { - let handle: INotificationHandle; // Convert choices into primary/secondary actions const actions: INotificationActions = { primary: [], secondary: [] }; @@ -69,7 +68,7 @@ export class NotificationService extends Disposable implements INotificationServ }); // Show notification with actions - handle = this.notify({ severity, message, actions }); + const handle = this.notify({ severity, message, actions }); once(handle.onDidClose)(() => {