microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.59k stars 29.03k forks source link

Error when invoking `explorer.newFile` while explorer viewlet is collapsed #96196

Closed jeanp413 closed 4 years ago

jeanp413 commented 4 years ago

Steps to Reproduce:

  1. Open a folder in vscode
  2. Collapse explorer viewlet
  3. Invoke explorer.newFile or explorer.newFolder command
  4. Error Command 'File: New Folder' resulted in an error (TreeError [FileExplorer] Data tree node not found: [object Object]) shows in notifications
isidorn commented 4 years ago

@jeanp413 good catch, thanks for reporting this. I believe this was like that since we shipped stable and our changes to the view / viewlet infrastucture. Issue was that open viewlet does not exapnd the explorer view which makes sense since a viewlet is a superset.