Not sure if my comment is necessary. But since this is marked as closed I just wanted to note that the issue with the "flipping scopemanager" still exists. 
Encountered the following while working on a template extension:
As soon as I add 'html' or 'js' as file-extension to createUntitledDocument(counter, fileExt) an error from the ScopeManager is written to the console: "Error resolving /bracketsrandomFileNumber"
If you pass an empty string as file-extension (like [File->New] does in sourcecode of Brackets) no errors occurs.
Besides the error message it seems to work fine. So probably it's not a big deal.

Full error:
Error resolving /_brackets_31559423/ ScopeManager.js:1071
(anonymous function) ScopeManager.js:1071
(anonymous function) /filesystem/FileSystem.js:594
(anonymous function) /filesystem/impls/appshell/AppshellFileSystem.js:210
(anonymous function) appshell:273

(Issue emcountered at sprint 36 and 37, OS Linux)