Fix empty item in explorer after clicking on Collapse Folders action while editing new file/folder by jeanp413 · Pull Request #96853 · microsoft/vscode

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@jeanp413

Copy link Copy Markdown

Contributor

@jeanp413 jeanp413 commented

May 3, 2020

edited

Loading

This PR fixes #96846

  1. Call this.tree.domFocus in the collapseAll method only if we are editing the explorer to cancel it.
  2. Add a cancelEditing (default true) parameter to the refresh method, the only place we don't want to cancel edit while refreshing is in the setEditable method. With this change the timeout in explorerViewer is not necessary.

Tested this locally on Ubuntu 18.04 on #96846, #96198, #96566

@isidorn

Copy link Copy Markdown

Collaborator

isidorn commented

May 4, 2020

Tried it out and it looks great. Also awesome that you removed the timeout!
Thanks a lot for improving the explorer ☀️

jeanp413 reacted with thumbs up emoji

@isidorn isidorn merged commit bddccf8 into microsoft:master

May 4, 2020

@isidorn isidorn added this to the May 2020 milestone

May 4, 2020

@jeanp413 jeanp413 deleted the fix-96846 branch

May 4, 2020 14:58

@github-actions github-actions bot locked and limited conversation to collaborators

Jun 18, 2020

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

@isidorn isidorn

Labels

None yet

Projects

None yet

Milestone

May 2020

Development

Successfully merging this pull request may close these issues.

Empty item in explorer after clicking on Collapse Folders action while editing new file/folder

2 participants

@jeanp413 @isidorn