forked from adobe/brackets
-
Notifications
You must be signed in to change notification settings - Fork 279
Release Notes: Sprint 18
njx edited this page Dec 21, 2012
·
17 revisions
This document will not be finalized until the end of Sprint 18 -- approximately December 20.
Note: this final sprint of the year was largely focused on architectural work preparing for future sprints, so there are fewer new features than usual.
-
Code Hinting
- Code hint provider API improvements: APIs for all code hints have been streamlined to support multiple hint providers per language more cleanly, remove bug-prone pitfalls, and do less processing per keystroke. More explanation here and here.
- Improved CSS utilities: A new CSSUtils API is available to support the ongoing effort to add full CSS code hinting in a future sprint.
-
Code Editing
- Progress on CodeMirror 3 migration: Inline editors are now mostly working on the cmv3 branch, with one major exception: they are not always the correct height.
-
Extensions
- Research language extensibility: Planning for for a future feature to allow extensions to add support for new file types. As a guinea pig, we're working on moving LESS support from core out into an extension.
Full change logs: brackets and brackets-shell
NativeFileSystem
- requestNativeFileSystem successCallback - https://github.com/adobe/brackets/pull/2158 The successCallback now returns a FileSystem object with a root:DirectoryEntry property. Previously the callback returned the root:DirectoryEntry itself.
- Replace FileError with NativeFileError (implements DOMError) - https://github.com/adobe/brackets/pull/2318 The latest w3 spec passes specifies that error callbacks pass a DOMError object instead of FileError. FileError.code is replaced with DOMError.name. The deprecated enumeration for FileError types has been replaced with an enumeration in NativeFileError (module: file/NativeFileError). This pull request also fixes some consistency issues with error callbacks
- Check examples and documentation - https://github.com/adobe/brackets/pull/2063
CodeHintManager
- registerHintProvider requires mode names and priority - When registering with the CodeHintManager (CHM), CodeHintProviders now must also specify a list of CodeMirror mode names (e.g., "html" or "css") for which they are capable of providing hints, and also an integer priority that is used to decide the order in which the CHM polls providers for a particular mode.
- CodeHintProvider interface changes - The interface that CHPs are required to implement has been simplified. There are now three required methods:
-
hasHints
, which is used to indicate whether or not a provider is willing to provide hints in a particular editor context, and begins a new hinting session; -
getHints
, which returns either a list of hints for the editor context associated with the current hinting session, or a deferred object that will eventually resolve to a list of hints, as well as indication of whether the first hint should be selected by default; and -
insertHint
, which inserts a hint into the editor context associated with the current session, also indicates whether the CHM should subsequently open another hinting session.
- Complete API details are available here: https://github.com/adobe/brackets/wiki/New-Code-Hinting-API-Proposal
CSSUtils - added the getInfoAtPos()
new API call which returns a context info object
for the given cursor position.
ExtensionUtils - the following new API calls were added:
-
addEmbeddedStyleSheet()
- Appends a <style> tag to the document's head. -
addLinkedStyleSheet()
- Appends a <link> tag to the document's head. -
parseLessCode()
- Parses LESS code and returns a promise that resolves with plain CSS code. -
getModulePath()
- Returns a path to an extension module. -
getModuleUrl()
- Returns a URL to an extension module. -
loadFile()
- Performs a GET request using a path relative to an extension module.
Also, loadStyleSheet()
now supports .less files (using the API calls listed above).
-
#1551: Changes within an extension (or a unit test) are not reflected by a simple "Debug > Reload Brackets." Workarounds:
- Quit and re-launch Brackets to pick up the changes.
- Open Developer Tools, click the gear icon in the lower-right, and select "Disable cache." This setting is remembered, but is only in effect so long as the Developer Tools browser tab remains open.
- Debug > Run Tests is disabled in the installer/DMG distributions of Brackets, because the unit test code is not included. To run unit tests, pull Brackets from GitHub instead.
- Debug > Show Developer Tools opens in a new tab in Chrome, rather than a new window in Brackets.
- #1283: Text selection highlight sometimes jiggles when horizontally resizing window.
- Mountain Lion (OS X 10.8) by default will not allow Brackets to run since it's not digitally signed yet. To work around this, right click the Brackets app and choose Open. You only need to do that once -- afterward, launching Brackets the normal way will work also.
- #2272: Windows Vista may not allow the Brackets installer to run since it was downloaded from the Internet (you may not see any error or warning message). To work around this, right-click the installer file, choose Properties, and click the Unblock button.
- Spanish translation for sprint18 strings by Chema Balsas
- Add pyc files to a list of ignored extensions by "justinabrahms"
- Update 'de' l10n by "J.M."
- Russian sample by "noway421"
- Adding python syntax highlighting by "justinabrahms"
- Fixing several Block and Line Comment issues by Tomás Malbrán
- Update 'de' locale by "J.M."
- NativeFileSystem documentation and examples by Chema Balsas
- Add CONTRIBUTING file by "J.M."
- NativeFileError for error callbacks in NativeFileSystem by Chema Balsas
- Adding tooltip to JSLint star on start-up with JSLint disabled by Tomás Malbrán
- Color Editor CSS cleanups by "J.M."
- Go to the most recently visited file when closing a file by Tomás Malbrán
- HTML attributes code hinting filter by Chema Balsas
- FileSystem Implementation by Chema Balsas
- Fix: If first line in selection is a line comment, Block Comment does nothing by Tomás Malbrán
- Spanish translation Sprint17 by Chema Balsas
- Use \u2026 for ellipsis in menu items by "J.M."
- CSS and HTML Line Comment by Tomás Malbrán
- Create files on collapsed folders by Chema Balsas
- Use Windows key bindings on linux and #2000 by Pritam Baral
- Russsian translation by "noway421" and reviewed by "TurboTurkey"
- Change dialog label for Quick Open based on mode and #1706 by "sagarsane"
- CodeMirror: Unit tests for line focus restoration
- CodeMirror: Ignore certain events when target is inside a line widget
For details on the bugs addressed, please refer to closed sprint 18 bugs. A few of the fixed bugs might not be caught by this search query, however.