Commit Graph

61 Commits

Author SHA1 Message Date
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
Victor Porof
a16b54f6f6 Bug 725235 - In the debugger, show a details bubble while hovering over a variable or property in the source editor, r=past,rcampbell 2013-11-29 16:47:52 +02:00
Anton Kovalyov
f626f4bd06 Bug 919707 - Make shift-click on a gutter select whole lines in the editor. r=robcee 2013-11-26 14:32:28 -08:00
Gabriel Luong
d7c9494952 Bug 924996 - Implement keyboard shortcut to move selected lines in source editor. r=anton 2013-11-25 19:06:42 -08:00
Gabriel Luong
bc6386adbc Bug 940713 - Enable autoclose brackets for source editor. r=anton 2013-11-25 15:57:51 -08:00
Paul Rouget
8dfedad31b Bug 941643 - Use menlo and consolas. r=bgrins 2013-11-21 11:48:59 -05:00
Victor Porof
3258089aae Bug 937539 - Cmd+Alt+F opens find/replace in the Debugger's editor. r=anton 2013-11-20 21:51:33 +02:00
Anton Kovalyov
ad77691c53 Bug 938111 - Don't use innerHTML in the Editor. r=harth 2013-11-20 14:39:10 -08:00
Anton Kovalyov
152f8d8560 Bug 929766 - Remove Orion from the SourceEditor component. r=msucan 2013-11-19 15:53:13 -08:00
Nick Fitzgerald
abd4e6b1db Bug 922812 - Add an 'eval current top level function' command to scratchpad; r=past 2013-11-19 15:17:40 -08:00
Anton Kovalyov
96bb357d6f Bug 929234 - Make CodeMirror extraKeys localizable. r=vporof 2013-11-07 14:39:31 -08:00