Commit Graph
71 Commits
Author SHA1 Message Date
Tom Tromey 0ba4b2dbbf Bug 1196431 - generalize detectIndentation and move to new file. r=pbro 2015-09-01 14:24:00 +02:00
Alexandre Poirot 52844e9bba Bug 1195825 - Replace Cu.import(Promise.jsm) by require(promise) in devtools. r=jryans 2015-08-26 06:05:13 -07:00
mitchfriedman ddd52a9aeb Bug 1046049 - Fix :w for saving in webide. r=jryans 2015-08-20 12:55:00 -04:00
Matteo Ferretti 3ee75ea37a Bug 1153474 - CMD + G in style editor does not find next if you haven't hit enter first. r=bgrins 2015-06-23 17:18:55 -07:00
Patrick Brosset 0d849bdbc4 Bug 1168077 - Remove remaining spidermonkey js specific syntax from browser/devtools; r=miker 2015-05-25 14:42:51 +02:00
ziyunfei 649e7033e4 Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Sami Jaktholm 493766f074 Bug 1148086 - Style Editor: Don't jump to the first line unconditionally when an editor is shown. r=bgrins
This overrides the jump-to-line other tools might have requested if the editor
was not already active. The idea was to restore the scroll position after the
editor was hidden and then shown again but the functionality regressed when bug
816967 was fixed.

Now that Style Editor uses CodeMirror the scroll position can be restored by
calling refresh on the CodeMirror instance. If a specific line to focus was
specified, refreshing the editor is a no-op as it was done when the line was
selected. However, if the editor was not refreshed after the editor became
visible again (i.e. a line to jump to was not specified), refreshing it will
restore the previous scroll position.
2015-04-25 06:54:25 +03:00
Tim Nguyen d7dcd1d4e1 Bug 1089428 - Allow script injection into source editor component. r=bgrins 2015-04-04 01:17:59 +02:00
Brian Grinstead ee3f82f5be Bug 1149346 - DevTools sourceeditor: make selection of an autocomplete item include the full text of the item;r=pbrosset
Previously, there was a case where typing 'a' and then selecting '#about' would
end up with 'about' in the editor.  The selection wasn't taking this situation
into account, so now if the prefix of the autocomplete item contains the entire
text of the line, then replace the first part of the line with the item
2015-04-15 08:15:22 -07:00
Ian Moody 5c26c2c0e4 Bug 1138518 - Add JS template string (`) to autoCloseBrackets for the DevTools Source Editor. r=bgrins 2015-03-02 10:59:00 +01:00
Adrian Aichner 484bc426c5 Bug 1058183 - Expose code folding as an option for all editor instances. r=bgrins 2014-09-12 13:36:00 +02:00
Jakub Jurovych 497f5add2e Bug 1052220 - Show traces' hit counts. r=fitzgen 2014-08-26 18:25:00 +02:00
Brian Grinstead 23bca18ed6 Bug 1022083 - Project Editor: Add context menu in sourceeditor. r=harth 2014-07-31 08:44:00 -04:00
Brian Grinstead 051b454364 Bug 1033853 - Do not reload files that have changed in project editor. r=harth 2014-07-07 07:45:00 +02:00
Brian Grinstead 3a52fe6376 Bug 1031472 - Automatically reload all preferences in source editor. r=vporof,harth 2014-07-07 13:52:00 +02:00
Brian Grinstead 8e71722388 Bug 1029511 - Source Editor: Add ability to toggle autocomplete option. r=vporof 2014-06-30 11:23:00 +02:00
Brian Grinstead 9702b67154 Bug 1030716 - Prevent dark theme in sourceeditor for WebIDE. r=paul 2014-06-26 06:14:00 +02:00
Jim Blandy 39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
anaran a548c13c5a Bug 1005471 - Scratchpad "Jump to line" should preset input value based on current selection, handle LINE:COLUMN as well;r+=bgrins
---
 browser/devtools/scratchpad/test/browser.ini       |    2 +
 .../browser_scratchpad_pprint_error_goto_line.js   |   66 ++++++++++
 .../test/browser_scratchpad_run_error_goto_line.js |   49 ++++++++
 browser/devtools/sourceeditor/editor.js            |   29 ++++-
 browser/devtools/sourceeditor/test/browser.ini     |    1 +
 .../sourceeditor/test/browser_editor_goto_line.js  |  130 ++++++++++++++++++++
 6 files changed, 276 insertions(+), 1 deletions(-)
 create mode 100644 browser/devtools/scratchpad/test/browser_scratchpad_pprint_error_goto_line.js
 create mode 100644 browser/devtools/scratchpad/test/browser_scratchpad_run_error_goto_line.js
 create mode 100644 browser/devtools/sourceeditor/test/browser_editor_goto_line.js
2014-06-02 15:33:20 -07:00
Brandon Benvie 9d4bb9f734 Bug 968896 - Add tern support to source editor to provide autocompletion and type inference. r=vp, r=anton, r=fitzgen 2014-04-16 13:49:28 -07:00
James Long 99b4194c7f Bug 986151 - Fix line number of breakpoints when added from context menu. r=past 2014-05-15 14:51:00 +02:00
James Long 203bdc87e1 Bug 799077 - slide the breakpoint with a CSS transition when the server moves it r=past 2014-05-08 14:57:00 +02:00
Heather Arthur fc7af7e895 Bug 998718 - Indentation detection is wrong when there's a majority of outliers. r=msucan 2014-04-22 15:14:00 -04:00
Heather Arthur ed3a913796 Bug 988155 - Option to detect indentation in source editor. r=msucan 2014-04-13 15:23:26 -04:00
Ryan VanderMeulen e1d2899606 Backed out changeset ab4c12c6028b (bug 988155) for xpcshell failures. 2014-04-13 16:20:33 -04:00
Heather Arthur b8466ed389 Bug 988155 - Option to detect indentation in source editor. r=msucan 2014-04-13 15:23:26 -04:00
Brian Grinstead 5c85a9086f Bug 985924 - Upgrade sourceeditor to CodeMirror 4.0.3; r=msucan 2014-04-04 12:44:10 -05:00
Brian Grinstead 46731cdd18 Bug 985924 - Upgrade autocomplete to support multi selection in CodeMirror 4; r=msucan 2014-04-01 09:59:00 -05:00
Michael Ratcliffe 2e943c9d37 Bug 663778 - Misc fixes r=pbrosset 2014-03-09 17:03:00 +00:00
Ryan VanderMeulen c633e65783 Backed out 6 changesets (bug 663778) for browser_dbg_listtabs-02.js leaks on a CLOSED TREE.
Backed out changeset cbd200206f9b (bug 663778)
Backed out changeset b0b74401e614 (bug 663778)
Backed out changeset df5255cffbfa (bug 663778)
Backed out changeset e6d0dd124356 (bug 663778)
Backed out changeset 134f77474941 (bug 663778)
Backed out changeset 456609873c5f (bug 663778)
2014-03-13 13:56:22 -04:00
Michael Ratcliffe 2b2ceb04c1 Bug 663778 - Misc fixes r=pbrosset 2014-03-13 15:46:37 +00:00
Anton Kovalyov 4e33a05de5 Bug 977345 - Editor should refresh when font size changes. r=robcee 2014-02-26 14:50:26 -08:00
J. Ryan Stinnett 26967f4282 Bug 976679 - Move event-emitter to toolkit. r=paul 2014-02-25 22:22:05 -06:00
Gabriel Luong 565a8cc79c Bug 968424 - Change keyboard shortcut to move selected lines in source editor to Alt-Up/Down. r=anton 2014-02-13 10:02:51 -05:00
Anton Kovalyov cde2487bb1 Bug 964504 - Add Editor.setFontSize/getFontSize. r=msucan 2014-02-10 18:21:42 -08:00
Dagger 989d37be8b Bug 963937 - Add a pref to disable automatic bracket closing in source editor. r=anton 2014-01-30 20:21:00 -08:00
Victor Porof 9a5ec580a2 Bug 965171 - Opening a variables view popup will change the scroll position in the editor if a watch expression is present, r=past 2014-01-30 12:46:09 +02:00
Girish Sharma f8442d7a5c Bug 717369 - Autocomplete CSS properties and values in the Style Editor - Part 1 - No tests, r=anton, msucan, dcamp, robcee, harth 2014-01-28 20:38:41 +05:30
Anton Kovalyov 0f2968b470 Bug 960270 - Streamline Editor API. r=msucan 2014-01-17 12:58:45 -08:00
Anton Kovalyov 95a84f6708 Bug 734439 - Add code folding support to the source editor. r=msucan r=benvie 2014-01-15 16:23:32 -08:00
Anton Kovalyov 12fc4ed457 Bug 941725 - Add emacs and vim key bindings to source editor. r=harth r=benvie r=msucan 2014-01-15 12:04:19 -08:00
Ben DeCoste 0d4140ce87 Bug 910183 - Highlight trailing space in the editor. r=msucan 2014-01-14 14:12:39 -08:00
Victor Porof beda0e466d Bug 957187 - The variable inspection popup never appears in the right place on Linux and Windows, r=past 2014-01-08 16:59:00 +02:00
Phil Ringnalda 8b2384e2ed Back out f122349d9fbd (bug 941725) for debug and ASan bc timeouts in browser_codemirror.js
CLOSED TREE
2014-01-07 20:48:34 -08:00
Anton Kovalyov 1485ca7fef Bug 941725 - Add emacs and vim key bindings to source editor. r=harth r=benvie r=msucan 2014-01-07 15:02:01 -08:00
Anton Kovalyov d2232f79fd Bug 956943 - Replace Editor.extendSelection with CM version. r=vporof 2014-01-07 13:01:38 -08:00
Anton Kovalyov c9d6e7f130 Bug 951975 - Expose Editor.setOption and Editor.getOption. r=msucan 2014-01-07 11:24:57 -08:00
Chris Peterson 817228d0fe Bug 955890 - Part 1: Fix DevTools JS warnings about some code paths not returning a value. r=rcampbell 2013-12-31 19:28:42 -08:00
Girish Sharma 81f16cec90 Bug 935176 - saving a style sheet doesn't remove the star, r=harth 2013-12-06 23:51:16 +05:30
Brandon Benvie f5e40602ba Bug 943673 - Convert to Promise.jsm in the source editor. r=anton 2013-12-02 14:10:57 -08:00