From 4360b952e34638bc9f4dd34c58d6819111988cce Mon Sep 17 00:00:00 2001 From: gjsjohnmurray Date: Sun, 16 Apr 2023 00:25:30 +0100 Subject: [PATCH] Allow repeated arrow-right expansion of unresolved folders when filtering a tree (#177444) --- src/vs/workbench/browser/actions/listCommands.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vs/workbench/browser/actions/listCommands.ts b/src/vs/workbench/browser/actions/listCommands.ts index 2cb52e52204af..db38ba9311383 100644 --- a/src/vs/workbench/browser/actions/listCommands.ts +++ b/src/vs/workbench/browser/actions/listCommands.ts @@ -415,6 +415,13 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ } } } + else if (focus && !widget.getNode(focus).visible) { + // https://github.com/microsoft/vscode/issues/177444 + // When filtering hides a just-resolved folder that was expanded by keyboard arrow-right we need to fix the focus + // so that the next arrow-right correctly expands (and potentially resolves) the next folder. + widget.focusPrevious(); + widget.focusNext(); + } }); } }