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

Commit 8deee96

Browse files
committed
Merge remote-tracking branch 'origin/master' into pflynn/find-in-files-scope
* origin/master: (206 commits) Update 'de' locale Add cleanup bug number to TODO. Improve docs on Resizer. update recent projects extension. remove reference to settings button. encode the URLs Fix Menu.removeMenuItem() unit tests: update for new setup where all tests in spec share one window (use unique ids for everything). Code cleanup in removeMenuItem(): use existing utility method to compute menu item id. Plus some docs tweaks. also check status 0 Fix bug with Select Line around end of inline editor range, and add unit tests for it. Remove unused argument to highlightMatch() Fix edge case with string range reporting from stringMatch() trap status from XMLHttpRequest and fail accordingly Unit tests for new Select Line command (pull #2002) pass return value Comment formatting tweak per code review Fix Quick Open so discontiguous matches are highlighted in modes other than file search: - Hoist out generic highlightMatch() utility to generate bolded strings - Use it in both defaultResultsFormatter() and _filenameResultsFormatter() Also: - Clarify stringMatch() docs a bit - Fix an older glitch in basicMatchSort(): the sort field precedence list had a gap, leading to a no-op comparison step fix margin/padding in recent project drop down add Project Settings... item to file menu code review changes More focus bug fixes remove commented out code Tweaks to docs in various files: clarifications & added/fixed type annotations. Fix lots of JSLint errors in CSSUtils-test. Remove unused dependencies in WorkingSetView. ... Conflicts: src/command/Menus.js
2 parents ec62c30 + f419f46 commit 8deee96

File tree

96 files changed

+4845
-1755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+4845
-1755
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ Thumbs.db
22
src/brackets.css
33
src/brackets.min.css
44

5-
# ignore everything in the user extension directory EXCEPT the README
5+
# ignore everything in the dev extension directory EXCEPT the README
66
# (so that the directory is non-empty and can be in git)
7-
src/extensions/user/*
8-
!src/extensions/user/README
7+
src/extensions/dev/*
8+
!src/extensions/dev/README
99

1010
#OSX .DS_Store files
1111
.DS_Store

LICENSE

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1717
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1818
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1919
DEALINGS IN THE SOFTWARE.
20-
21-
Please note that some portions of this project are written by third parties
22-
under different license terms. Your use of those portions are governed by
23-
the license terms contained in the corresponding files.

NOTICE

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
Brackets is licensed under the MIT license (see LICENSE file).
2+
3+
Brackets uses the following third party libraries that may have licenses
4+
differing from that of Brackets itself. You can find the libraries and their
5+
respective licenses below.
6+
7+
8+
- CodeMirrror - ./src/thirdparty/CodeMirror2
9+
10+
Copyright (C) 2012 by Marijn Haverbeke <[email protected]>
11+
12+
Permission is hereby granted, free of charge, to any person obtaining a copy
13+
of this software and associated documentation files (the "Software"), to deal
14+
in the Software without restriction, including without limitation the rights
15+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16+
copies of the Software, and to permit persons to whom the Software is
17+
furnished to do so, subject to the following conditions:
18+
19+
The above copyright notice and this permission notice shall be included in
20+
all copies or substantial portions of the Software.
21+
22+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28+
THE SOFTWARE.
29+
30+
Please note that some subdirectories of the CodeMirror distribution
31+
include their own LICENSE files, and are released under different
32+
licences.
33+
34+
35+
- jQuery - ./src/thirdparty/jquery-1.7.js
36+
37+
Copyright 2011, John Resig
38+
Dual licensed under the MIT or GPL Version 2 licenses.
39+
http://jquery.org/license
40+
41+
Includes Sizzle.js
42+
http://sizzlejs.com/
43+
Copyright 2011, The Dojo Foundation
44+
Released under the MIT, BSD, and GPL Licenses.
45+
46+
47+
- JSLint - ./src/thirdparty/jslint
48+
49+
Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
50+
51+
Permission is hereby granted, free of charge, to any person obtaining a copy
52+
of this software and associated documentation files (the "Software"), to deal
53+
in the Software without restriction, including without limitation the rights
54+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55+
copies of the Software, and to permit persons to whom the Software is
56+
furnished to do so, subject to the following conditions:
57+
58+
The above copyright notice and this permission notice shall be included in
59+
all copies or substantial portions of the Software.
60+
61+
The Software shall be used for Good, not Evil.
62+
63+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
64+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
66+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
67+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
68+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
69+
SOFTWARE.
70+
71+
72+
- LESS - ./src/thirdparty/less-1.3.0.min.js
73+
74+
Copyright (c) 2009-2011, Alexis Sellier
75+
Licensed under the Apache 2.0 License.
76+
77+
78+
- i18n.js - ./src/thirdparty/i18n.js
79+
80+
Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
81+
Available via the MIT or new BSD license.
82+
see: http://github.com/jrburke/requirejs for details
83+
84+
85+
- jsTree - ./src/thirdparty/jstree_pre1.0_fix_1
86+
87+
Copyright (c) 2010 Ivan Bozhanov (vakata.com)
88+
89+
Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License
90+
http://www.opensource.org/licenses/mit-license.php
91+
http://www.gnu.org/licenses/gpl.html
92+
93+
94+
- Mustache.js - ./src/thirdparty/mustache
95+
96+
Copyright (c) 2009 Chris Wanstrath (Ruby)
97+
Copyright (c) 2010 Jan Lehnardt (JavaScript)
98+
99+
Permission is hereby granted, free of charge, to any person obtaining
100+
a copy of this software and associated documentation files (the
101+
"Software"), to deal in the Software without restriction, including
102+
without limitation the rights to use, copy, modify, merge, publish,
103+
distribute, sublicense, and/or sell copies of the Software, and to
104+
permit persons to whom the Software is furnished to do so, subject to
105+
the following conditions:
106+
107+
The above copyright notice and this permission notice shall be
108+
included in all copies or substantial portions of the Software.
109+
110+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
111+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
112+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
113+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
114+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
115+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
116+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
117+
118+
119+
- path-utils.js - ./src/thirdpary/path-utils
120+
121+
Copyright (c) 2011, Kin Blas
122+
All rights reserved.
123+
124+
Redistribution and use in source and binary forms, with or without
125+
modification, are permitted provided that the following conditions are met:
126+
* Redistributions of source code must retain the above copyright
127+
notice, this list of conditions and the following disclaimer.
128+
* Redistributions in binary form must reproduce the above copyright
129+
notice, this list of conditions and the following disclaimer in the
130+
documentation and/or other materials provided with the distribution.
131+
* Neither the name of the <organization> nor the
132+
names of its contributors may be used to endorse or promote products
133+
derived from this software without specific prior written permission.
134+
135+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
136+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
137+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
138+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
139+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
140+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
141+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
142+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
144+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145+
146+
147+
- Require.js - ./src/thirdparty/require.js
148+
149+
Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
150+
Available via the MIT or new BSD license.
151+
see: http://github.com/jrburke/requirejs for details
152+
153+
154+
- jQuery Smart Auto Complete Plugin - ./src/thirdparty/smart-auto-complete
155+
156+
Copyright (c) 2011 Lakshan Perera (laktek.com)
157+
158+
Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
159+
160+
161+
- text.js - ./src/thirdparty/text.js
162+
163+
Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
164+
Available via the MIT or new BSD license.
165+
see: http://github.com/jrburke/requirejs for details

src/LiveDevelopment/Agents/DOMAgent.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,17 @@ define(function DOMAgent(require, exports, module) {
174174

175175
/** Load the source document and match it with the DOM tree*/
176176
function _onFinishedLoadingDOM() {
177-
console.assert(exports.url.substr(0, 7) === "file://", "Can only load file urls");
178177
var request = new XMLHttpRequest();
179178
request.open("GET", exports.url);
180179
request.onload = function onLoad() {
181-
_mapDocumentToSource(request.response);
182-
_load.resolve();
180+
if ((request.status >= 200 && request.status < 300) ||
181+
request.status === 304 || request.status === 0) {
182+
_mapDocumentToSource(request.response);
183+
_load.resolve();
184+
} else {
185+
var msg = "Received status " + request.status + " from XMLHttpRequest while attempting to load source file at " + exports.url;
186+
_load.reject(msg, { message: msg });
187+
}
183188
};
184189
request.onerror = function onError() {
185190
_load.reject("Could not load source file at " + exports.url);

0 commit comments

Comments
 (0)