提交 72de9336 编写于 作者: I isidor

open editors: always auto expand groups

上级 cde44ff2
......@@ -91,8 +91,7 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView {
// Show groups only if there is more than 1
const treeInput = this.model.groups.length === 1 ? this.model.groups[0] : this.model;
this.tree.setInput(treeInput).done(null, errors.onUnexpectedError);
this.tree.expandAll(this.model.groups).done(null, errors.onUnexpectedError);
this.tree.setInput(treeInput).done(() => this.tree.expandAll(this.model.groups), errors.onUnexpectedError);
}
public create(): TPromise<void> {
......@@ -138,7 +137,7 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView {
// Show in tree
const treeInput = this.model.groups.length === 1 ? this.model.groups[0] : this.model;
if (treeInput !== this.tree.getInput()) {
this.tree.setInput(treeInput).done(null, errors.onUnexpectedError);
this.tree.setInput(treeInput).done(() => this.tree.expandAll(this.model.groups), errors.onUnexpectedError);
} else {
this.tree.refresh().done(null, errors.onUnexpectedError);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册