close picker when promise input errors
This commit is contained in:
parent
e22834e316
commit
b845a937e6
|
@ -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(() => {
|
||||||
|
|
Loading…
Reference in a new issue