Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow repeated arrow-right expansion of unresolved folders when filtering a tree (#177444) #180055

Closed
wants to merge 3 commits into from

Conversation

gjsjohnmurray
Copy link
Contributor

This PR fixes #177444.

To test, open a folder that contains an unexpanded node_modules subfolder. Use Ctrl+F to filter the explorer tree for a contiguous string that doesn't occur in most filenames (for example .es). Focus onto the tree (e.g. by pressing ArrowDown after entering the filter string). Navigate to node-modules, the hold down ArrowRight to expand folders repeatedly. When filtering hides a fully-resolved folder because it contains no matches, ArrowRight now correctly expands the next folder.

@gjsjohnmurray
Copy link
Contributor Author

/assign @joaomoreno

@gjsjohnmurray
Copy link
Contributor Author

Pinging @lramos15 because though this applies to all trees it is particularly relevant in Explorer and I would like it to be considered for inclusion in 1.78 before endgame starts next week.

@lramos15 lramos15 added this to the April 2023 milestone Apr 19, 2023
Copy link
Member

@lramos15 lramos15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit hacky but appears to work nicely and improve the general experience 👍

@joaomoreno
Copy link
Member

Definitely hacky.

When debugging, I observe the problem is actually that getFocus() is returning the element which was just removed from the tree. We should fix that instead of implementing a workaround for the model being in an inconsistent state.

@joaomoreno
Copy link
Member

joaomoreno commented Apr 24, 2023

Closing in favor of #180704

Thanks any way @gjsjohnmurray!

@joaomoreno joaomoreno closed this Apr 24, 2023
@gjsjohnmurray gjsjohnmurray deleted the fix-177444 branch April 24, 2023 15:26
@github-actions github-actions bot locked and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When filtering the Explorer, can't always expand the highlighted directory using the keyboard
3 participants