I believe this is where the ProjectManager test failure is coming from. The watch request is still pending, and the directory contents won't get cached. There's a separate issue though with the fact that `refreshFileTree` doesn't maintain the selection state after a refresh.