Good point. This is is an artifact of having made a a change to refreshFileTree to take an argument of fileEntry that would also select the new file. But i reverted that change when I found openAndSelectDocument.