Commit Graph
15 Commits
Author SHA1 Message Date
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 290ba5cb21 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300
2019-08-19 12:48:16 +00:00
Nicolas Chevobbe a597824b4b Bug 1558248 - Don't clear the completion text when it starts with the typed letters. r=fvsch.
We were clearing the completion text all the time to prevent
a visual glitch while typing (See Bug 1491776). But since we
are now waiting for 75ms before calling the autocomplete
function (which triggers the autocompletion text update), we
have a flash of the completion text, which isn't ideal.
In this patch, we check if the typed letters match the begining
of the completion text, and if they do, we don't clear the
completion text.
In the same time, we set the completion text in absolute position
so it doesn't jump when the new letter is added in the CodeMirror
document.
Finally, we change how the Editor pipe events from CodeMirror to
include parameters, so we can use them in JsTerm.

Differential Revision: https://phabricator.services.mozilla.com/D36163
2019-07-07 10:38:08 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Jason Laster 798a92e17f Bug 1553291 - CodeMirror chokes on large minified files. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D36237
2019-06-28 17:22:35 +00:00
Brian Hackett 7de9b0c3dd Bug 1544623 - Tolerate missing CodeMirror, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D27630
2019-04-15 14:27:15 -10: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 d07b624c23 Bug 1528727 - Lazy load wasm utils in source editor; r=yury.
The file and its dependencies are pretty large and can take
a while to load. Since some consumers might not need those function,
loading them lazily looks like a good move.

Differential Revision: https://phabricator.services.mozilla.com/D20147
2019-02-20 12:43:51 +00:00
Nicolas Chevobbe 6e222e4e02 Bug 1528739 - Don't load CSS properties by default; r=gl.
If the cssProperties config wasn't provided, the Editor
was loading getClientCssProperties, which loads properties-db
which is quite large.
Since the Style Editor is providing a cssProperties config,
this was done for all the other consumers, none of them
actually having any use of it.
We remove this default behaviour which allows us to speed
up panel/source opening quite significantly.

Differential Revision: https://phabricator.services.mozilla.com/D20305
2019-02-20 09:01:03 +00:00
Gurzau Raul e7ffb6e906 Backed out changeset e4b9ec1beb2c (bug 1528727) for devtools failures at /sourceeditor/test/browser_editor_autocomplete_events.js on a CLOSED TREE. 2019-02-19 19:22:46 +02:00
Nicolas Chevobbe 5174b5c1f7 Bug 1528727 - Lazy load wasm utils in source editor; r=yury.
The file and its dependencies are pretty large and can take
a while to load. Since some consumers might not need those function,
loading them lazily looks like a good move.

Differential Revision: https://phabricator.services.mozilla.com/D20147
2019-02-19 15:52:53 +00:00
Nicolas Chevobbe 146741486e Bug 1528910 - Remove unused externalScripts from source editor config; r=gl.
This config is not set by any Editor consumer, so
it's safe to remove it. Furthermore, this allow us
to clean things up a bit and remove a test.

Differential Revision: https://phabricator.services.mozilla.com/D20302
2019-02-19 14:57:46 +00:00
Nicolas Chevobbe 56eee64b56 Bug 1527898 - Override find and replace commands when disableSearchAddon is true; r=gl.
This is an hotfix for the bug, which we want to uplift.
A better fix will happen in Bug 1527903.

Depends on D19963

Differential Revision: https://phabricator.services.mozilla.com/D19965
2019-02-18 04:35:42 +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