Skip to content

Commit b845a93

Browse files
author
Benjamin Pasero
committed
close picker when promise input errors
1 parent e22834e commit b845a93

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/vs/workbench/browser/parts/quickopen/quickOpenController.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
363363
} else {
364364
this.pickOpenWidget.setInput(model, autoFocus);
365365
}
366-
}, error);
366+
}, (err) => {
367+
this.pickOpenWidget.hide();
368+
369+
error(err);
370+
});
367371

368372
// Progress if task takes a long time
369373
Promise.timeout(800).then(() => {

0 commit comments

Comments
 (0)