debt - remove declaration for WinJS.Promise#any

This commit is contained in:
Johannes Rieken
2018-10-01 12:07:35 +02:00
parent fb75f32be9
commit 61a2faf7e4
5 changed files with 8 additions and 8 deletions

View File

@@ -54,8 +54,8 @@ export class ExtHostQuickOpen implements ExtHostQuickOpenShape {
canPickMany: options && options.canPickMany
}, token);
return TPromise.any(<TPromise<number | Item[]>[]>[quickPickWidget, itemsPromise]).then(values => {
if (values.key === '0') {
return Promise.race(<Thenable<false | Item[]>[]>[quickPickWidget.then(() => false), itemsPromise]).then(value => {
if (value === false) {
return undefined;
}