提交 a333d74d 编写于 作者: B Benjamin Pasero

search looses focus when jumping between results that are not pinned

上级 a42976ec
......@@ -1365,7 +1365,13 @@ export class SearchViewlet extends Viewlet {
this.viewModel = this.instantiationService.createInstance(SearchResult, query.contentPattern);
this.tree.setInput(this.viewModel).then(() => {
autoExpand(false);
this.callOnModelChange.push(this.viewModel.addListener2('changed', (e: any) => this.tree.refresh(e, true)));
this.callOnModelChange.push(this.viewModel.addListener2('changed', (e: any) => {
const focus = this.tree.isDOMFocused();
this.tree.refresh(e, true);
if (focus) {
this.tree.DOMFocus();
}
}));
}).done(null, errors.onUnexpectedError);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册