提交 c043a0de 编写于 作者: R roblou

Fix #19201 - 'selectPreviousResult' should do nothing when invoked from the top result

上级 f1b65121
......@@ -498,9 +498,11 @@ export class SearchViewlet extends Viewlet {
}
// Reveal the newly selected element
this.tree.setFocus(prev, eventPayload);
this.tree.setSelection([prev], eventPayload);
this.tree.reveal(prev);
if (prev) {
this.tree.setFocus(prev, eventPayload);
this.tree.setSelection([prev], eventPayload);
this.tree.reveal(prev);
}
}
public setVisible(visible: boolean): TPromise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册