fix an issue with restoring open files

Fix:

- an issue where the files view would not show the contents of folders at startup w/o a refresh
- files opened in editors would not be restored if that file was contained in a project

@gaurave