Commit Graph
12 Commits
Author SHA1 Message Date
Nicolas Chevobbe 95737b5bfe Bug 1591404 - Remove unused tern and show-hint CodeMirror addons. r=gl.
Differential Revision: https://phabricator.services.mozilla.com/D50937
2019-10-30 06:58:51 +00:00
Nicolas Chevobbe ce25c3f455 Bug 1519103 - Remove Scratchpad panel. r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D50583
2019-10-27 09:05:58 +00:00
Nicolas Chevobbe b9102f3c4f Bug 1590707 - Don't display outline on CodeMirror scrollbars. r=fvsch.
Differential Revision: https://phabricator.services.mozilla.com/D50201
2019-10-23 12:41:12 +00:00
Florens Verschelde 80e4b9a839 Bug 1589233 - Align CodeMirror line-height with Debugger in Inspector, Style Editor and Console editor; r=gl,nchevobbe
We have a few CodeMirror instances where we're using the default line height (`line-height: normal`), resulting in a line-height in the 13-14.5px range (depending on the font, OS, resolution). By contrast, the Debugger uses 15px explictly, and that's a style we're trying to generalize.

This patch sets a 15px line-height for:
- Inspector: the CodeMirror instance used in the markup view for "Edit as HTML" and in event tooltips
- Style Editor: the main editor instance
- Console: the jsterm but only in editor mode (since the output uses a 14px line-height on purpose, the jsterm in standard mode keeps this 14px line-height to minimize visual jumps when sending a command)

Differential Revision: https://phabricator.services.mozilla.com/D49593
2019-10-21 14:18:07 +00:00
Florens Verschelde 6cae09ed1f Bug 1588796 - New search-in-file highlight style in Debugger and Style Editor; r=davidwalsh,gl
Differential Revision: https://phabricator.services.mozilla.com/D49439
2019-10-16 22:12:30 +00:00
Gabriel Luong ae9a71157f Bug 1583278 - Upgrade CodeMirror to 5.49.0. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D46826
2019-09-23 18:47:42 +00:00
Jason Laster 0f89c25938 Bug 1560572 - Format Rust files. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D35557
2019-06-25 15:43:34 +00:00
Florens Verschelde 488da0dfc9 Bug 1543324 - Part 3: Remove --theme-comment-alt variable; r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D27108
2019-04-18 19:17:03 +00:00
Florens Verschelde 8d9e907b45 Bug 1543324 - Part 1: Replace --theme-content-color1,2,3 variables; r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D27106
2019-04-18 19:18:43 +00:00
Nicolas Chevobbe c48c5496a8 Bug 919711 - Add a CodeMirror inputStyle to make it accessible; r=bgrins.
This copies what's done in Chrome DevTools to make codeMirror more accessible.
A new input mode is added which overrides the default `textarea` one.

This makes the "Edit as HTML" feature usable for people relying on screen readers.
This may be used in the future in the console, where we could remove the legacy
console input and serve the CodeMirror instance for everyone.

Differential Revision: https://phabricator.services.mozilla.com/D24930
2019-04-05 13:43:10 +00:00
Nicolas Chevobbe c53c9b0c13 Bug 1530255 - Load keyMap files on demand; r=bgrins.
We use to include all the keyMap files in the
codeMirror bundle, but these files can be
pretty large, and are useless if the user did
not select a custom key mapping in the settings
panel.
This patch changes this to only load those files
when they are needed, either when a new editor
is created, or when the user changes the key mapping
preference. The files are only loaded once.

Differential Revision: https://phabricator.services.mozilla.com/D22977
2019-03-12 14:56:24 +00:00
Nicolas Chevobbe 05be70cf58 Bug 1527322 - Move the sourceeditor folder under devtools/client/shared; r=gl.
Differential Revision: https://phabricator.services.mozilla.com/D19641
2019-02-13 15:37:08 +00:00