mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 03:28:33 -05:00
Port VS Code telemetry opt-in dialog (#1130)
This commit is contained in:
@@ -134,7 +134,7 @@ export class DialogService implements IChoiceService, IConfirmationService {
|
||||
c(index);
|
||||
|
||||
if (closeNotification) {
|
||||
handle.dispose();
|
||||
handle.close();
|
||||
}
|
||||
|
||||
return TPromise.as(void 0);
|
||||
@@ -171,9 +171,9 @@ export class DialogService implements IChoiceService, IConfirmationService {
|
||||
handle = this.notificationService.notify({ severity, message, actions });
|
||||
|
||||
// Cancel promise when notification gets disposed
|
||||
once(handle.onDidDispose)(() => promise.cancel());
|
||||
once(handle.onDidClose)(() => promise.cancel());
|
||||
|
||||
}, () => handle.dispose());
|
||||
}, () => handle.close());
|
||||
|
||||
return promise;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user