Sometimes adding a folder to a workspace causes the explorer viewet to be blank #42526
Labels
bug
Issue identified by VS Code Team member as probable bug
file-explorer
Explorer widget issues
verified
Verification succeeded
workbench-multiroot
Multi-root (multiple folders) issues
Milestone
Issue Type
Bug
Description
I can't reliably repdroduce this, but sometimes adding a folder to a workspace (with
code-insiders . -add
) causes the explorer viewlet to be blank.The stack trace is complaing about this line: https://github.com/Microsoft/vscode/blob/b543a60cffb349ab96f546afa8ce3ef9786d97ea/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts#L782 - trying to call
isRoot
whenfs === null
is an error.I'm not sure how this can happen, but this line: https://github.com/Microsoft/vscode/blob/b543a60cffb349ab96f546afa8ce3ef9786d97ea/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts#L803
has the
model.findClosest
call, which is apparently returningnull
. I don't know why it is returning null in this circumstance.VS Code Info
VS Code version: Code - Insiders 1.20.0-insider (8cac1ac, 2018-01-30T17:19:56.812Z)
OS version: Darwin x64 17.3.0
System Info
The text was updated successfully, but these errors were encountered: