adobe/brackets — pull request #794 by tvoliter (2012-05-03 00:09:11+00:00)
Title: Prevent re-entrancy into handleFileNewInProject(), fixes issue #738

handleFileNewInProject() initiates a two step process where the user is first prompted to name a file and then it is written asynchronously to disk. This process must complete before a new file is generated. This change prevents reentrancy and also closes the rename field when the user chooses "new file" during a rename.

I earlier tried a fancier approach that queue up user requests for new files. This got overly complex plus in the future "new file" is likely to create a new in-memory file rather than one on disk. In which case this code will change.

Fixes issue #738