Reveal first child, not separator (#208953)

Fixes https://github.com/microsoft/vscode/issues/208696
This commit is contained in:
Tyler James Leonhardt 2024-03-27 14:08:23 -07:00 committed by GitHub
parent 9e0b3f311a
commit b065dc2b60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1292,9 +1292,9 @@ export class QuickInputTree extends Disposable {
if (e.element instanceof QuickPickSeparatorElement) {
foundSeparatorAsItem = true;
// If the separator is visible, then we should just focus it.
// If the separator is visible, then we should just reveal its first child so it's not as jarring.
if (this._separatorRenderer.isSeparatorVisible(e.element)) {
this._tree.reveal(e.element);
this._tree.reveal(e.element.children[0]);
} else {
// If the separator is not visible, then we should
// push it up to the top of the list.