Skip to content

Fixes collapse folders action doesn't work when workspace root folder has just one file child item#104744

Merged
isidorn merged 1 commit intomicrosoft:masterfrom
jeanp413:fix-104641
Aug 17, 2020
Merged

Fixes collapse folders action doesn't work when workspace root folder has just one file child item#104744
isidorn merged 1 commit intomicrosoft:masterfrom
jeanp413:fix-104641

Conversation

@jeanp413
Copy link
Contributor

This PR fixes #104641

Given a workspace:

  • root_folder _1
    • file_1.js
  • root_folder _2
    • file_2.js
    • file_3.js

The returned collapsed state for the file_1.js tree item is false causing the hasExpandedRootChild method to return true. To fix it just add a check to test if the child item is collapsible.

@isidorn
Copy link
Collaborator

isidorn commented Aug 17, 2020

Great fix, thanks a lot for creating this PR. I just tried it out and it works great.
Merging in 🍻 ☀️ 👏

@isidorn isidorn merged commit 6ea5e58 into microsoft:master Aug 17, 2020
@isidorn isidorn added this to the August 2020 milestone Aug 17, 2020
@jeanp413 jeanp413 deleted the fix-104641 branch August 17, 2020 15:20
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2020
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.

"Collapse Folders In Explorer" button doesn't work properly

2 participants