allow cb to be called if task is not cancellable

This commit is contained in:
SteVen Batten 2019-04-25 01:08:54 +00:00
parent 5f651ee5c3
commit 6cc34bb4f6

View file

@ -309,7 +309,7 @@ export class ProgressService2 implements IProgressService2 {
disposables.push(attachDialogStyler(dialog, this._themeService));
dialog.show().then(() => {
if (options.cancellable && typeof onDidCancel === 'function') {
if (typeof onDidCancel === 'function') {
onDidCancel();
}