Merge pull request #17220 from Snuffleupagus/pr-17176-followup

Also pause translation when expanding the current outline-item (PR 17176 follow-up)
This commit is contained in:
Tim van der Meij 2023-11-04 15:29:14 +01:00 committed by GitHub
commit 87c83ab31c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,6 +161,8 @@ class BaseTreeViewer {
if (!treeItem) {
return;
}
// Pause translation when expanding the treeItem.
this._l10n.pause();
// Ensure that the treeItem is *fully* expanded, such that it will first of
// all be visible and secondly that scrolling it into view works correctly.
let currentNode = treeItem.parentNode;
@ -171,6 +173,8 @@ class BaseTreeViewer {
}
currentNode = currentNode.parentNode;
}
this._l10n.resume();
this._updateCurrentTreeItem(treeItem);
this.container.scrollTo(