未验证 提交 536e8162 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #90626 from baileyherbert/82828-listview-reveal

Skip explorer reveal on visible items
......@@ -676,7 +676,11 @@ export class ExplorerView extends ViewPane {
if (item.isDisposed) {
return this.onSelectResource(resource, reveal, retry + 1);
}
this.tree.reveal(item, 0.5);
// Don't scroll to the item if it's already visible
if (this.tree.getRelativeTop(item) === null) {
this.tree.reveal(item, 0.5);
}
}
this.tree.setFocus([item]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册