mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
debt - remove declaration for WinJS.Promise#any
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user