Skip to content

Commit b065dc2

Browse files
Reveal first child, not separator (microsoft#208953)
Fixes microsoft#208696
1 parent 9e0b3f3 commit b065dc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/quickinput/browser/quickInputTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,9 +1292,9 @@ export class QuickInputTree extends Disposable {
12921292

12931293
if (e.element instanceof QuickPickSeparatorElement) {
12941294
foundSeparatorAsItem = true;
1295-
// If the separator is visible, then we should just focus it.
1295+
// If the separator is visible, then we should just reveal its first child so it's not as jarring.
12961296
if (this._separatorRenderer.isSeparatorVisible(e.element)) {
1297-
this._tree.reveal(e.element);
1297+
this._tree.reveal(e.element.children[0]);
12981298
} else {
12991299
// If the separator is not visible, then we should
13001300
// push it up to the top of the list.

0 commit comments

Comments
 (0)