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

Action in explorer is interrupted shortly after creating a folder #111652

Closed
Tyriar opened this issue Dec 1, 2020 · 10 comments
Closed

Action in explorer is interrupted shortly after creating a folder #111652

Tyriar opened this issue Dec 1, 2020 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues insiders-released Patch has been released in VS Code Insiders on-release-notes Issue/pull request mentioned in release notes verified Verification succeeded
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Dec 1, 2020

Repro 1:

  • Create a folder
  • Try rename it

recording (16)

Repro 2:

  • Create a folder
  • Try create a file

recording (15)


Version: 1.52.0-insider (user setup)
Commit: bf21395
Date: 2020-12-01T09:19:32.000Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042

@isidorn
Copy link
Contributor

isidorn commented Dec 1, 2020

This works fine for me.
Though I do acknowledge that there might be a timing issue here, I just do not see it on my mac. Not a recent regression -> assigning to December to investigate more then.

@isidorn isidorn added the file-explorer Explorer widget issues label Dec 1, 2020
@isidorn isidorn added this to the December/January 2021 milestone Dec 1, 2020
@Tyriar
Copy link
Member Author

Tyriar commented Dec 1, 2020

I can't reproduce in 1.51.1 with --disable-extensions. Note that I don't have any settings on either and it happens on Insiders only. Here's the keybinding I was using in the gif, but it happens when clicking the new folder button as well, just be quick with F2:

{ "key": "ctrl+shift+n",     "command": "explorer.newFolder", "when": "explorerViewletVisible && filesExplorerFocus && !isMac" },

Tested and works fine in:

Version: 1.51.1 (user setup)
Commit: e5a624b
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042

@isidorn
Copy link
Contributor

isidorn commented Dec 2, 2020

Ok I can finally repro if I do it very fast.
@jeanp413 fyi if you might be interested in a PR since I know you touched this area a couple of times

@isidorn isidorn added the bug Issue identified by VS Code Team member as probable bug label Dec 2, 2020
@jeanp413
Copy link
Contributor

jeanp413 commented Dec 3, 2020

Sure I'll take a look

@jeanp413
Copy link
Contributor

jeanp413 commented Dec 4, 2020

@isidorn the commit that caused the regression is c8d123d
The difference is that now we are refreshing the explorer even though the added resource is already part of the explorer model.
I saw you commited some optimizations in 564ff91 but to fix this we need a way to avoid refreshing unnecessarily in this specific case

@isidorn
Copy link
Contributor

isidorn commented Dec 4, 2020

@jeanp413 that is very useful. Thanks for investigating. I know how to fix, but would prefer to fix in debt week as it is last day of the endgame. Thus let's leave this for December and I will fix next week - I will aggressivly change how we react on file events and not refresh in the case when the resource is already part of the explorer model.

@isidorn
Copy link
Contributor

isidorn commented Dec 9, 2020

@Tyriar @joaomoreno thanks a lot for filling this
We should be good with my fix

@isidorn
Copy link
Contributor

isidorn commented Dec 9, 2020

Also let me know if you see some file events missing or any file event funkiness in Insiders

@Tyriar
Copy link
Member Author

Tyriar commented Jan 20, 2021

Haven't seen this in quite a while, thanks for the fix!

@Tyriar Tyriar added the verified Verification succeeded label Jan 20, 2021
@isidorn
Copy link
Contributor

isidorn commented Jan 20, 2021

Thank you for reporting!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2021
@isidorn isidorn added the on-release-notes Issue/pull request mentioned in release notes label Jan 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues insiders-released Patch has been released in VS Code Insiders on-release-notes Issue/pull request mentioned in release notes verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants
@isidorn @Tyriar @jeanp413 and others