Our main goals for the sprint were similar to the previous sprint - Continue to make progress on the extensibility architecture of Brackets: research, basic architecture and extensibility API:
Architecture / Contributions
ExtensionUtils.loadStyleSheet()API to load a custom stylesheet for extension UI. See Extension UI Guidelines for best practices.
Menu.addMenuItem() function no longer takes an ID parameter.
Also, the relativeID parameter has changed. Previously this parameter specified the id of another MenuItem. Now it references the id of a Command that exists in the parent menu to specify a location. The net result is that MenuItems no longer have externally exposed ID’s.
These changes simplify the API, but will break existing extensions that add menus, so please update your Brackets extensions with this change.
Mutator APIs have been added to Document. To modify text, use these Document APIs instead of going through Editor or CodeMirror. For details on Document usage, see "Working with Documents" in the Brackets Development How Tos.
Document.getText()so it always returns \n line endings (like the above new APIs) unless a special flag is passed.
The events dispatched by ProjectManager have changed. Instead of dispatching
projectRootChanged, we now dispatch
beforeProjectClose is dispatched before the project root is about to change, and
projectOpen is dispatched afterwards. Also,
projectOpen is dispatched after the initial project is opened when Brackets first launches.
ExtensionUtils.loadStyleSheet(module, path)to load a style sheet relative to the extension's module.
require("text!path/to/file"). This is useful for loading templates (we don't have a template library built in yet, but you can include one in your extension).
waitsForDone()function for using Promise/Deferred (see forum post)
JSUtils.findMatchingFunctions(functionName, fileInfos)For a set of files, returns function offsets for function declarations with a matching name.
See closed sprint 10 bugs. A few other bugs might have been fixed that weren't tagged.
Last edited by pthiess,