Skip to content

Commit

Permalink
Allow repeated arrow-right expansion of unresolved folders when filte…
Browse files Browse the repository at this point in the history
…ring a tree (microsoft#177444)
  • Loading branch information
gjsjohnmurray committed Apr 15, 2023
1 parent 682afdd commit 4360b95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vs/workbench/browser/actions/listCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
}
}
Expand Down

0 comments on commit 4360b95

Please sign in to comment.