expose scm-progress in stable api, #18066

This commit is contained in:
Johannes Rieken
2017-03-27 20:01:06 +02:00
parent 10532246de
commit 228086cd72
3 changed files with 26 additions and 22 deletions

View File

@@ -46,12 +46,7 @@ export class ExtHostProgress {
throw err;
}
return p.then(result => {
this._proxy.$progressEnd(handle);
return result;
}, err => {
this._proxy.$progressEnd(handle);
throw err;
});
p.then(result => this._proxy.$progressEnd(handle), err => this._proxy.$progressEnd(handle));
return p;
}
}