CodeMirror API changes - Public Brackets editor APIs have not changed. However, if you access raw CodeMirror APIs directly (by using the
_codeMirror property on Editor or setting CSS styles on CodeMirror instances), you'll need to make sure your code is updated to reflect the changes in the CodeMirror v3 API.
If you want your extension to work with both Brackets and Edge Code (please do!), you will need your code to handle both the v2 and v3 APIs for now, because Edge Code hasn't been updated to CodeMirror v3 yet. (For example, in cases where you're passing x/y in an object today, you might need to make your code pass both x/y and left/top.) Again, this should only be an issue if you're using raw CodeMirror APIs; Brackets APIs like
Editor.setScrollPos() haven't changed.
offsetTopChanged event removed - This was deprecated in sprint 19 and has been removed in sprint 20.
Selection centering - Editor's
setCursorPos() now offer the option to center the viewport on the targeted text when scrolling. Most "go to"-type actions should use this option -- pass true as an additional argument.
Quick Open providers - The provider's
search() method is now passed an additional argument,
stringMatcher.match() instead of
QuickOpen.match() will yield improved performance through caching. You can also cache your own data by adding properties to this object; see extensions/default/QuickOpenHTML/main.js for sample usage. Use of this argument is optional.
Contributions to CodeMirror:
For details on the bugs addressed, please refer to closed sprint 20 bugs. A few of the fixed bugs might not be caught by this search query, however.