adobe/brackets — pull request #1672 by njx (2012-09-17 20:46:51+00:00)
Title: Continue initialization even if initial project can't be loaded

For #1667.

The primary bug fix is the one in brackets.js. The change to ProjectManager was just to make it so that if the initial project load does fail, we don't continue with initialization until the welcome project is actually loaded. I don't know if it would break anything to continue anyway, but various bits of Brackets might currently assume that you always have a current project. (We plan to fix this in the future, but for now I don't want to take any chances.)

Note that in the original ProjectManager code, there was a `return loadProject(...)` in the failure case. I don't think the "return" makes sense because it's in a promise `done()` callback, so there's nothing that would look at the return value anyway, unless I'm missing something.