mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 10:40:41 +00:00
fixes #5133
This commit is contained in:
parent
a862919a89
commit
e1cbf08f39
|
@ -319,11 +319,12 @@ export class DefaultController implements _.IController {
|
|||
tree.clearHighlight(payload);
|
||||
} else {
|
||||
var focus = tree.getFocus();
|
||||
tree.collapse(focus).done((didCollapse) => {
|
||||
tree.collapse(focus).then(didCollapse => {
|
||||
if (focus && !didCollapse) {
|
||||
tree.focusParent(payload);
|
||||
return tree.reveal(tree.getFocus());
|
||||
}
|
||||
});
|
||||
}).done(null, errors.onUnexpectedError);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue