-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Add function to suggest untitled document name #93
Comments
The async code looks good, but it feels a bit odd putting it in ProjectManager like that. How about doing this async implementation, but back in FileCommandHandlers. The call to ProjectManager.createNewItem() would be made in the done() handler. |
If I call ProjectManager.createNewItem() in my done handler, how do I return the results to the caller of handleFileNewInProject? |
You would need to add a new Deferred in handleFileNewInProject, and return that. The new Deferred would resolve()/reject() based on the result of the Deferred returned from ProjectManager.createNewItem(). Asynchronous coding at it's finest :-) |
Should be ready to roll |
Monday Jan 16, 2012 at 21:20 GMT
Originally opened as adobe/brackets#89
This is to fix adobe/brackets#26
chrisbank included the following code: https://github.com/adobe/brackets/pull/89/commits
The text was updated successfully, but these errors were encountered: