Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Merge cmv3 into master #2853

Merged
merged 188 commits into from
Feb 13, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
ea25f1a
Basic integration of CodeMirror v3:
Oct 1, 2012
a80ade8
Initial integration of inline editors:
Oct 30, 2012
baa5662
Update CodeMirror SHA for upstream merge
Oct 30, 2012
c99f45a
Merge branch 'master' into cmv3
Oct 30, 2012
290db61
Update CodeMirror SHA
Oct 30, 2012
fb3b253
Clarified comment; cleaned up JSLint error
Oct 31, 2012
7086d75
Update to latest CodeMirror upstream
Oct 31, 2012
21f91ec
Updated to latest CodeMirror
Oct 31, 2012
03d826c
Merge remote-tracking branch 'origin/master' into cmv3
Oct 31, 2012
35a984e
Update various uses of CodeMirror APIs to be compatible with v3, base…
Nov 1, 2012
9ceb41e
Merge branch 'master' into cmv3
Nov 1, 2012
ed60312
Move font size definition/changes to .CodeMirror. Make editor padding…
Nov 1, 2012
24a7d7c
do not hide lines when the range is zero
jasonsanjose Nov 1, 2012
bac1e39
Merge pull request #2024 from adobe/jasonsanjose/cmv3
Nov 1, 2012
d771280
Enabled Haxe mode (with syntax highlighting). Require CodeMirror vers…
andyli Nov 7, 2012
13da359
Update to latest v3
Nov 29, 2012
523cab2
Merge from master and update to latest CodeMirror v3 (which is now up…
Dec 12, 2012
de4f474
Update to latest CodeMirror upstream master
Dec 17, 2012
07d683e
Merge remote-tracking branch 'origin/master' into cmv3
Dec 17, 2012
7fbd4e2
[cmv3] Inline editor bugfixes:
Dec 18, 2012
85862b8
Merge pull request #2382 from adobe/nj/cmv3-inline-fixes
gruehle Dec 18, 2012
30e0d34
Update to latest CodeMirror upstream master
Dec 18, 2012
5d75e80
Update to latest CodeMirror upstream master
Dec 18, 2012
f028229
Update to latest CodeMirror upstream master
Dec 18, 2012
32afc6f
Ensure inline widgets are scrolled to be fully visible when opened, a…
Dec 18, 2012
223ebf4
Merge pull request #2397 from adobe/nj/cmv3-scrollIntoView
gruehle Dec 19, 2012
00e6aae
Merge branch 'master' into cmv3
Dec 19, 2012
42e3d34
Properly clip rule list to status bar
Dec 19, 2012
340e97c
Properly calculate offset of widget from top of virtual scroll area
Dec 19, 2012
66614fd
Merge pull request #2400 from adobe/nj/issue-2396
gruehle Dec 19, 2012
848f8f1
Merge pull request #2401 from adobe/nj/issue-2399
gruehle Dec 19, 2012
8365b0a
Update CodeMirror to latest upstream master
Dec 19, 2012
da40ebb
Merge pull request #2075 from andyli/cmv3_haxe
Dec 19, 2012
a23b2fb
fix #1974 and #2413: center the line of interest
dangoor Jan 4, 2013
03aa8cc
Use css height:auto to layout inline editors. Use CodeMirror wrapper …
jasonsanjose Jan 4, 2013
16c2c3d
remove debug code
jasonsanjose Jan 4, 2013
56a518a
a couple of fixes based on review comments
dangoor Jan 7, 2013
7b838cf
changing the centering behavior to only center when the cursor is
dangoor Jan 7, 2013
815b859
remove explicit height on inline text editor
jasonsanjose Jan 7, 2013
1eb90c5
remove direct calls to editor.centerOnCursor by incorporating centering
dangoor Jan 8, 2013
54ccd73
centerOnCursor now has clearer variable names
dangoor Jan 9, 2013
22701ce
Add option to scroll inline widgets into view when added
jasonsanjose Jan 9, 2013
9f2c1d4
simplify inline editor change handling. still need to address bugs an…
jasonsanjose Jan 9, 2013
5ae5ec4
remove extraneous editor refresh to improve performance
jasonsanjose Jan 9, 2013
c6c4faf
centerOnCursor adjusts to handle the menu bar area on top, and the st…
dangoor Jan 9, 2013
c702da4
Decouple horiz scrolling in inline text editors from outer editor.
Jan 9, 2013
6ba7b41
Fix InlineTextEditor close event handling and event handler removal.
jasonsanjose Jan 9, 2013
1125cad
code review comments
jasonsanjose Jan 9, 2013
b701acd
Always refresh host editor when size changes up or down.
jasonsanjose Jan 9, 2013
186b962
Merge pull request #2475 from adobe/dangoor/cm3centering
jasonsanjose Jan 10, 2013
ec3b502
Merge pull request #2476 from adobe/jasonsanjose/cmv3
Jan 10, 2013
0dd63c6
Merge from cmv3
Jan 10, 2013
05f926d
Merge pull request #2500 from adobe/nj/cmv3-inline-hscroll
jasonsanjose Jan 10, 2013
e949ef1
update upstream-master
jasonsanjose Jan 10, 2013
ec298de
update paths to codemirror addons
jasonsanjose Jan 10, 2013
4860681
Merge pull request #2507 from adobe/jasonsanjose/cmv3-widget-api-change
joelrbrandt Jan 10, 2013
f9f2be7
When EditorManager is resizing editor, refresh inline editors as well
Jan 11, 2013
da3031d
Make horiz scrollbar in inline widget stay at bottom of widget
Jan 11, 2013
5e2ac9d
workaround async scrolling due to #2491
jasonsanjose Jan 11, 2013
1e78d8b
update upstream-master
jasonsanjose Jan 11, 2013
585e656
Merge branch 'cmv3' into jasonsanjose/cmv3-widget-api-change
jasonsanjose Jan 11, 2013
bc3a9a0
update issue number
jasonsanjose Jan 11, 2013
ab01f12
Merge branch 'cmv3' into nj/cmv3-hscroll-sidebar
Jan 11, 2013
d422dd2
Properly set inline editor min-height on initial load. Code review cl…
Jan 11, 2013
f9d79c0
Merge pull request #2510 from adobe/nj/cmv3-hscroll-sidebar
jasonsanjose Jan 11, 2013
b2aa5d2
Merge pull request #2516 from adobe/jasonsanjose/cmv3-widget-api-change
Jan 11, 2013
1e22719
Use height:auto only for inline editors to fix rendering time for lar…
jasonsanjose Jan 11, 2013
e83e906
move height:auto override to brackets.less
jasonsanjose Jan 11, 2013
79dcf03
Merge pull request #2519 from adobe/jasonsanjose/issue-2517
Jan 11, 2013
59be3e3
Merge branch 'master' into cmv3
jasonsanjose Jan 12, 2013
907eddc
Fix #2528 remove line widgets before adding a new widget
jasonsanjose Jan 14, 2013
7cffcd6
Merge pull request #2545 from adobe/jasonsanjose/cmv3-bugs
Jan 15, 2013
29a627b
Kick the inline widget layout to render scrollbars when added
jasonsanjose Jan 15, 2013
f8ce434
Fix use of event namespace on window object
jasonsanjose Jan 16, 2013
014eaa2
Merge pull request #2557 from adobe/jasonsanjose/cmv3-bugs
Jan 16, 2013
8d068c8
merge upstream/master to fix Brackets #2522
jasonsanjose Jan 16, 2013
73dc6ce
missing semicolon
jasonsanjose Jan 16, 2013
c3f40ad
center the results for FindInFiles search
dangoor Jan 17, 2013
afbe30b
loads the search addon for tests and tests centering in find
dangoor Jan 16, 2013
5967c6c
Merge pull request #2576 from adobe/dangoor/fifcentering
redmunds Jan 17, 2013
b012d8c
Merge pull request #2577 from adobe/dangoor/centeringtest
jasonsanjose Jan 17, 2013
6c9ba17
Merge branch 'master' into cmv3
dangoor Jan 18, 2013
77a1c59
Add a test for QuickOpen and a custom matcher for editor cursor posit…
dangoor Jan 18, 2013
7887dbf
change the FindReplace-test to use the toHaveCursorPosition matcher.
dangoor Jan 18, 2013
349fd04
address review comments from @jasonsanjose.
dangoor Jan 18, 2013
55b381d
Merge pull request #2602 from adobe/dangoor/quickopentest
jasonsanjose Jan 18, 2013
15d5ca2
Merge branch 'master' into cmv3
jasonsanjose Jan 23, 2013
e5ecec4
implement inline widget 'redraw'
jasonsanjose Jan 23, 2013
6f6ef92
Updated to latest CodeMirror upstream
Jan 24, 2013
ef02173
Merge branch 'master' into cmv3
Jan 24, 2013
be0c6d5
Merge branch 'cmv3' into jasonsanjose/cmv3
jasonsanjose Jan 24, 2013
0dde51d
Use CodeMirror update event to resize inline widgets. Fix #2520 to re…
jasonsanjose Jan 24, 2013
0d0a72c
Make sure cursor appears in front of spans with background color. Mak…
Jan 24, 2013
2de696d
do not set height when unchanged
jasonsanjose Jan 25, 2013
eef7a8a
Merge pull request #2659 from adobe/nj/issue-2526
jasonsanjose Jan 25, 2013
69b779c
code review comment
jasonsanjose Jan 25, 2013
941cd85
Use pointer cursor in rule list
Jan 25, 2013
9f8625e
Also set pointer cursor over scrollbars in inline editor
Jan 25, 2013
1255054
Handle mouseup the same as click in inline editor
Jan 25, 2013
2e91e13
Merge pull request #2661 from adobe/nj/issue-2566
jasonsanjose Jan 25, 2013
83fb0cf
fix ensureVisible logic
jasonsanjose Jan 25, 2013
baab037
Adjust HTMLUtils to function correctly with changes in cmv3 tokenizer.
RaymondLim Jan 25, 2013
945217f
Merge branch 'cmv3' of https://github.com/adobe/brackets into cmv3
RaymondLim Jan 25, 2013
087656d
Fix missing comma
Jan 25, 2013
0edf332
Merge pull request #2658 from adobe/jasonsanjose/cmv3
Jan 25, 2013
b5c876e
Use same bound handler for both click and mouseup
Jan 25, 2013
33c4658
Merge pull request #2664 from adobe/nj/issue-2567
jasonsanjose Jan 25, 2013
77c5405
Fixes #2600 (comment toggling not working).
dangoor Jan 25, 2013
a5c3dea
Adjust getInfoAtPos() api implementation to changes in CM v3 changes …
RaymondLim Jan 25, 2013
683599e
Merge pull request #2673 from adobe/dangoor/fix-2600
jasonsanjose Jan 25, 2013
9f7da44
update upstream-master
jasonsanjose Jan 28, 2013
747edcb
Merge branch 'cmv3' of github.com:adobe/brackets into cmv3
jasonsanjose Jan 28, 2013
579a83c
Implement selectAllNoScroll per Marijnh's suggestion
jasonsanjose Jan 28, 2013
5999af4
Fixes #2563, #1913. Handle inner CodeMirror modes and update PHP mode…
jasonsanjose Jan 28, 2013
c0bcbe3
Implement selectAllNoScroll in an operation. Do not use a separate Co…
jasonsanjose Jan 28, 2013
6c456b7
remove plugin file
jasonsanjose Jan 28, 2013
b1a631d
Merge pull request #2692 from adobe/jasonsanjose/cmv3-select-all
Jan 29, 2013
95bb678
test modes for name equality
jasonsanjose Jan 29, 2013
99ed227
Remove whitespace
jasonsanjose Jan 29, 2013
64ef283
Merge branch 'cmv3' into jasonsanjose/issue-2563
jasonsanjose Jan 29, 2013
cde9142
Merge branch 'master' into cmv3
jasonsanjose Jan 30, 2013
05ef59a
code review comments. detect xml mode in Editor getModeForSelection()…
jasonsanjose Jan 30, 2013
a918d02
Set default cursor on all inline editors
Jan 30, 2013
a9c8c73
Merge pull request #2725 from adobe/nj/issue-2722
jasonsanjose Jan 30, 2013
5ac18c1
Fix selection color in both main and inline editors
Jan 30, 2013
9c7ee5e
Fix CSS rules that make cursor invisible in unfocused inline editor
Jan 30, 2013
b072e6f
rename variable
jasonsanjose Jan 30, 2013
2b8d53f
Merge pull request #2726 from adobe/nj/issue-2720
jasonsanjose Jan 30, 2013
5c85434
Refactor mode querying to TokenUtils.getModeAt()
jasonsanjose Jan 30, 2013
28d3944
correct comment
jasonsanjose Jan 30, 2013
e071308
minor code review comments
jasonsanjose Jan 31, 2013
9aecc28
fix missing CodeMirror global
jasonsanjose Jan 31, 2013
0917ea5
Merge pull request #2697 from adobe/jasonsanjose/issue-2563
Jan 31, 2013
15bb579
Avoid extra refreshes when opening or switching to an editor
Jan 31, 2013
84b0598
Configure autoCloseTag add-on using default settings
jasonsanjose Jan 31, 2013
5c32c30
Closes #2547. Per NJ's suggestion, disabling new lines when tags are …
jasonsanjose Jan 31, 2013
b0b3153
Merge pull request #2759 from adobe/jasonsanjose/issue-2541
RaymondLim Feb 1, 2013
f7767fe
Center on selection in two more 'jump to' features: clicking JSLint
peterflynn Feb 1, 2013
e221cd2
turn off the QuickOpen test until it's fixed for Windows
dangoor Feb 1, 2013
b3d12ad
update upstream-master
jasonsanjose Feb 1, 2013
6022498
Merge pull request #2767 from adobe/dangoor/qo-test-off
RaymondLim Feb 1, 2013
258dd7a
Merge branch 'master' into cmv3-brackets-merge
Feb 1, 2013
965ffe7
Always explicitly set height on inline editors
Feb 1, 2013
478d593
Merge pull request #2772 from adobe/nj/issue-2755
jasonsanjose Feb 1, 2013
ba532f6
Updated CodeMirror v3 SHA
Feb 1, 2013
108af21
Avoid refreshing editor on resize if the height didn't actually change
Feb 2, 2013
edcb29d
range checking for scroll pos
redmunds Feb 2, 2013
9474857
Update CodeMirror v3 SHA
Feb 3, 2013
435dbb1
For #2721, specify edit origin for color editor widgets in order to b…
Feb 3, 2013
1e60395
Merge branch 'cmv3' into nj/reduce-refreshes
Feb 4, 2013
4315958
Merge pull request #2778 from adobe/nj/reduce-refreshes
jasonsanjose Feb 4, 2013
98b0b5d
also check upper range
redmunds Feb 5, 2013
77c7063
for findFirst() don't center search for first half of screen
redmunds Feb 5, 2013
d857aec
Update assumptions on platform-specific font loading
jasonsanjose Feb 5, 2013
84b7450
Merge pull request #2792 from adobe/jasonsanjose/issue-2768
Feb 5, 2013
132ef82
Merge branch 'master' into cmv3
Feb 5, 2013
b01b8f8
Merge pull request #2762 from adobe/pflynn/jslint-centering
Feb 6, 2013
1a4c333
use more generic options
redmunds Feb 6, 2013
01a2afd
Merge pull request #2788 from adobe/randy/issue-2774
dangoor Feb 7, 2013
f7c259a
Update HTML code hints unit test since we're now filtering already us…
RaymondLim Feb 7, 2013
c6d82fd
Merge remote-tracking branch 'origin/cmv3' into pflynn/cmv3-highlight…
peterflynn Feb 7, 2013
054dcb3
Code review fixes. Added unit test.
Feb 8, 2013
4dd8b47
For #2780, ensure that the cursor doesn't interfere with mouse events
Feb 8, 2013
10ea970
Merge pull request #2808 from adobe/nj/issue-2780
gruehle Feb 8, 2013
4a052a8
Merge pull request #2790 from adobe/nj/issue-2721
peterflynn Feb 8, 2013
ebbf3a7
For #2806, refresh child editor on timeout after redraw event
Feb 8, 2013
9656f2f
Merge pull request #2803 from adobe/rlim/attr-hints-issue-2793
Feb 8, 2013
f42a054
Add some code to catch the cases where the cursor is in an error toke…
RaymondLim Feb 8, 2013
47dc17f
Updated CodeMirror v3 SHA
Feb 8, 2013
d386cde
Merge pull request #2814 from adobe/nj/issue-2806
gruehle Feb 8, 2013
3ca21db
Disable pointer events on CodeMirror-lines.
gruehle Feb 8, 2013
6690183
Remove redundant ruleset.
gruehle Feb 8, 2013
8711c1d
Only skip refresh if the width hasn't changed
Feb 8, 2013
15d2435
Update comments.
gruehle Feb 8, 2013
a48a198
Merge remote-tracking branch 'origin/pflynn/cmv3-highlight-search' in…
Feb 8, 2013
0805088
Merge branch 'master' into nj/merge-find-stuff
Feb 8, 2013
a245972
Merge pull request #2817 from adobe/rlim/code-hint-issue-2804
redmunds Feb 8, 2013
4a6f941
Set text cursor.
gruehle Feb 8, 2013
37e11b0
Update CodeMirror SHA to brackets-sprint20 branch, which contains a t…
Feb 11, 2013
6081773
Merge pull request #2827 from adobe/glenn/close-dropdown
Feb 11, 2013
64bdf18
Update CodeMirror SHA
gruehle Feb 12, 2013
e7195bd
Update CodeMirror SHA. For real this time.
gruehle Feb 12, 2013
de31228
Merge remote-tracking branch 'origin/cmv3' into nj/issue-2825
Feb 12, 2013
f26d8cd
Cleaned up refresh code and made it so we always refresh after showin…
Feb 12, 2013
8e15a6a
Change string literals for resizeEditor() arg to constants
Feb 13, 2013
bd2caa2
Clarified comment
Feb 13, 2013
7dc72a2
Merge pull request #2831 from adobe/nj/issue-2825
peterflynn Feb 13, 2013
a5ea47c
Merge from master into cmv3
Feb 13, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/LiveDevelopment/Agents/GotoAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ define(function GotoAgent(require, exports, module) {
editor.focus();

if (!noFlash) {
codeMirror.setLineClass(location.line, "flash");
window.setTimeout(codeMirror.setLineClass.bind(codeMirror, location.line), 1000);
codeMirror.addLineClass(location.line, "wrap", "flash");
window.setTimeout(function () {
codeMirror.removeLineClass(location.line, "wrap", "flash");
}, 1000);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Documents/CSSDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ define(function CSSDocumentModule(require, exports, module) {
if (rule.ruleId && rule.ruleId.styleSheetId === this.styleSheet.styleSheetId) {
from = codeMirror.posFromIndex(rule.selectorRange.start);
to = codeMirror.posFromIndex(rule.style.range.end);
this._highlight.push(codeMirror.markText(from, to, "highlight"));
this._highlight.push(codeMirror.markText(from, to, { className: "highlight" }));
}
}
}.bind(this));
Expand Down
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Documents/HTMLDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ define(function HTMLDocumentModule(require, exports, module) {
if (this._highlight) {
this._highlight.clear();
}
this._highlight = codeMirror.markText(from, to, "highlight");
this._highlight = codeMirror.markText(from, to, { className: "highlight" });
};

// Export the class
Expand Down
4 changes: 2 additions & 2 deletions src/LiveDevelopment/Documents/JSDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ define(function JSDocumentModule(require, exports, module) {
var codeMirror = this.editor._codeMirror;
var i;
for (i in this._highlight) {
codeMirror.setLineClass(this._highlight[i]);
codeMirror.removeLineClass(this._highlight[i], "wrap", "highlight");
}
this._highlight = [];
if (!node || !node.trace) {
Expand All @@ -118,7 +118,7 @@ define(function JSDocumentModule(require, exports, module) {
callFrame = node.trace[i];
if (callFrame.location && callFrame.location.scriptId === scriptId) {
line = callFrame.location.lineNumber;
codeMirror.setLineClass(line, "highlight");
codeMirror.addLineClass(line, "wrap", "highlight");
this._highlight.push(line);
}
}
Expand Down
18 changes: 12 additions & 6 deletions src/document/DocumentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,10 +820,18 @@ define(function (require, exports, module) {
* @param {!string} text Text to insert or replace the range with
* @param {!{line:number, ch:number}} start Start of range, inclusive (if 'to' specified) or insertion point (if not)
* @param {?{line:number, ch:number}} end End of range, exclusive; optional
* @param {?string} origin Optional string used to batch consecutive edits for undo.
* If origin starts with "+", then consecutive edits with the same origin will be batched for undo if
* they are close enough together in time.
* If origin starts with "*", then all consecutive edit with the same origin will be batched for
* undo.
* Edits with origins starting with other characters will not be batched.
* (Note that this is a higher level of batching than batchOperation(), which already batches all
* edits within it for undo. Origin batching works across operations.)
*/
Document.prototype.replaceRange = function (text, start, end) {
Document.prototype.replaceRange = function (text, start, end, origin) {
this._ensureMasterEditor();
this._masterEditor._codeMirror.replaceRange(text, start, end);
this._masterEditor._codeMirror.replaceRange(text, start, end, origin);
// _handleEditorChange() triggers "change" event
};

Expand Down Expand Up @@ -857,9 +865,7 @@ define(function (require, exports, module) {
this._ensureMasterEditor();

var self = this;
this._masterEditor._codeMirror.compoundChange(function () {
self._masterEditor._codeMirror.operation(doOperation);
});
self._masterEditor._codeMirror.operation(doOperation);
};

/**
Expand All @@ -871,7 +877,7 @@ define(function (require, exports, module) {
// On any change, mark the file dirty. In the future, we should make it so that if you
// undo back to the last saved state, we mark the file clean.
var wasDirty = this.isDirty;
this.isDirty = editor._codeMirror.isDirty();
this.isDirty = !editor._codeMirror.isClean();

// If file just became dirty, notify listeners, and add it to working set (if not already there)
if (wasDirty !== this.isDirty) {
Expand Down
4 changes: 2 additions & 2 deletions src/editor/CodeHintList.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ define(function (require, exports, module) {
*/
CodeHintList.prototype._calcHintListLocation = function () {
var cursor = this.editor._codeMirror.cursorCoords(),
posTop = cursor.y,
posLeft = cursor.x,
posTop = cursor.top,
posLeft = cursor.left,
$window = $(window),
$menuWindow = this.$hintMenu.children("ul");

Expand Down
Loading