close picker when promise input errors

This commit is contained in:
Benjamin Pasero 2015-11-26 09:26:21 +01:00
parent e22834e316
commit b845a937e6

View file

@ -363,7 +363,11 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
} else { } else {
this.pickOpenWidget.setInput(model, autoFocus); this.pickOpenWidget.setInput(model, autoFocus);
} }
}, error); }, (err) => {
this.pickOpenWidget.hide();
error(err);
});
// Progress if task takes a long time // Progress if task takes a long time
Promise.timeout(800).then(() => { Promise.timeout(800).then(() => {