提交 40aca7b5 编写于 作者: J Johannes Rieken

make sure progress callback is passed alone, fixes #2039

上级 d55b6850
......@@ -261,8 +261,15 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
});
});
return this.doPick(entryPromise, options).then(item => {
return item && isAboutStrings ? item.label : item;
return new TPromise<string | IPickOpenEntry>((resolve, reject, progress) => {
function onItem(item: IPickOpenEntry): string | IPickOpenEntry {
return item && isAboutStrings ? item.label : item;
}
this.doPick(entryPromise, options).then(item => resolve(onItem(item)),
err => reject(err),
item => progress(onItem(item)));
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册