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

Commit c4329f9

Browse files
committed
Merge with master
2 parents 4d3b533 + 06a7b30 commit c4329f9

42 files changed

Lines changed: 2175 additions & 486 deletions

Some content is hidden

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

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
url = https://github.com/janl/mustache.js.git
1313
[submodule "src/extensions/default/JavaScriptCodeHints/thirdparty/tern"]
1414
path = src/extensions/default/JavaScriptCodeHints/thirdparty/tern
15-
url = https://github.com/dangoor/tern.git
15+
url = https://github.com/marijnh/tern.git
1616
[submodule "src/extensions/default/JavaScriptCodeHints/thirdparty/acorn"]
1717
path = src/extensions/default/JavaScriptCodeHints/thirdparty/acorn
18-
url = https://github.com/dangoor/acorn.git
18+
url = https://github.com/marijnh/acorn.git
1919
[submodule "src/thirdparty/requirejs"]
2020
path = src/thirdparty/requirejs
2121
url = https://github.com/jrburke/requirejs.git

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ what's missing!
3434

3535
#### Download
3636

37-
Installers for the latest stable build for Mac and Windows can be [downloaded here](http://download.brackets.io/).
38-
39-
A Linux port is in the works; check out the
40-
[Linux wiki page](https://github.com/adobe/brackets/wiki/Linux-Version).
37+
Installers for the latest stable build for Mac, Windows and Linux (Debian/Ubuntu) can be [downloaded here](http://download.brackets.io/).
4138

39+
The Linux version has most of the features of the Mac and Windows versions, but
40+
is still missing a few things. See the [Linux wiki page](https://github.com/adobe/brackets/wiki/Linux-Version)
41+
for a list of known issues and to find out how you can help.
4242

4343
#### Usage
4444

@@ -53,8 +53,9 @@ for a list of new features and known issues in each build.
5353

5454
In addition to the core features built into Brackets, there is a large and growing
5555
community of developers building extensions that add all sorts of useful functionality.
56-
See the [extensions wiki page](https://github.com/adobe/brackets/wiki/Brackets-Extensions)
57-
for a list of extensions and instructions on how to install them.
56+
See the [Brackets Extension Registry](https://brackets-registry.aboutweb.com/)
57+
for a list of available extensions. For installation instructions,
58+
see the [extensions wiki page](https://github.com/adobe/brackets/wiki/Brackets-Extensions).
5859

5960
#### Need help?
6061

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Brackets",
3-
"version": "0.29.0-0",
4-
"apiVersion": "0.29.0",
3+
"version": "0.30.0-0",
4+
"apiVersion": "0.30.0",
55
"homepage": "http://brackets.io",
66
"issues": {
77
"url": "http://github.com/adobe/brackets/issues"

src/command/CommandManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ define(function (require, exports, module) {
237237

238238
if (command) {
239239
try {
240-
$(exports).triggerHandler("beforeExecuteCommand");
240+
$(exports).triggerHandler("beforeExecuteCommand", id);
241241
} catch (err) {
242242
console.error(err);
243243
}

src/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"extension_url": "https://s3.amazonaws.com/extend.brackets/{0}/{0}-{1}.zip"
1818
},
1919
"name": "Brackets",
20-
"version": "0.29.0-0",
21-
"apiVersion": "0.29.0",
20+
"version": "0.30.0-0",
21+
"apiVersion": "0.30.0",
2222
"homepage": "http://brackets.io",
2323
"issues": {
2424
"url": "http://github.com/adobe/brackets/issues"

src/editor/Editor.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ define(function (require, exports, module) {
705705
/**
706706
* Gets the current cursor position within the editor. If there is a selection, returns whichever
707707
* end of the range the cursor lies at.
708-
* @param {boolean} expandTabs If true, return the actual visual column number instead of the character offset in
708+
* @param {boolean} expandTabs If true, return the actual visual column number instead of the character offset in
709709
* the "ch" property.
710710
* @return !{line:number, ch:number}
711711
*/
@@ -721,7 +721,7 @@ define(function (require, exports, module) {
721721
/**
722722
* Returns the display column (zero-based) for a given string-based pos. Differs from pos.ch only
723723
* when the line contains preceding \t chars. Result depends on the current tab size setting.
724-
* @param {!{line:number, ch:number}}
724+
* @param {!{line:number, ch:number}} pos
725725
* @return {number}
726726
*/
727727
Editor.prototype.getColOffset = function (pos) {
@@ -742,11 +742,16 @@ define(function (require, exports, module) {
742742

743743
/**
744744
* Sets the cursor position within the editor. Removes any selection.
745-
* @param {number} line The 0 based line number.
745+
* @param {number} line The 0 based line number.
746746
* @param {number} ch The 0 based character position; treated as 0 if unspecified.
747-
* @param {boolean} center true if the view should be centered on the new cursor position
747+
* @param {boolean=} center True if the view should be centered on the new cursor position.
748+
* @param {boolean=} expandTabs If true, use the actual visual column number instead of the character offset as
749+
* the "ch" parameter.
748750
*/
749-
Editor.prototype.setCursorPos = function (line, ch, center) {
751+
Editor.prototype.setCursorPos = function (line, ch, center, expandTabs) {
752+
if (expandTabs) {
753+
ch = this.getColOffset({line: line, ch: ch});
754+
}
750755
this._codeMirror.setCursor(line, ch);
751756
if (center) {
752757
this.centerOnCursor();

src/extensibility/ExtensionManager.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,14 @@ define(function (require, exports, module) {
334334
brackets.fs.unlink(filename, function () { });
335335
}
336336
});
337+
_idsToUpdate = {};
338+
}
339+
340+
/**
341+
* Unmarks all extensions marked for removal.
342+
*/
343+
function unmarkAllForRemoval() {
344+
_idsToRemove = {};
337345
}
338346

339347
/**
@@ -469,6 +477,7 @@ define(function (require, exports, module) {
469477
exports.cleanupUpdates = cleanupUpdates;
470478
exports.markForRemoval = markForRemoval;
471479
exports.isMarkedForRemoval = isMarkedForRemoval;
480+
exports.unmarkAllForRemoval = unmarkAllForRemoval;
472481
exports.hasExtensionsToRemove = hasExtensionsToRemove;
473482
exports.updateFromDownload = updateFromDownload;
474483
exports.removeUpdate = removeUpdate;

src/extensibility/ExtensionManagerDialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ define(function (require, exports, module) {
131131
});
132132
} else {
133133
ExtensionManager.cleanupUpdates();
134+
ExtensionManager.unmarkAllForRemoval();
134135
}
135136
});
136137
}

src/extensions/default/CSSCodeHints/CSSProperties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
"white-space": {"values": ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "inherit"]},
190190
"widows": {"values": ["inherit"]},
191191
"width": {"values": ["auto", "inherit"]},
192+
"word-break": {"values": ["normal", "break-all", "keep-all"]},
192193
"word-spacing": {"values": ["normal", "inherit"]},
193194
"word-wrap": {"values": ["break-word", "normal"]},
194195
"z-index": {"values": ["auto", "inherit"]}

src/extensions/default/DebugCommands/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,8 @@ define(function (require, exports, module) {
188188
});
189189

190190
var template = Mustache.render(LanguageDialogTemplate, {languages: languages, Strings: Strings});
191-
Dialogs.showModalDialogUsingTemplate(template).done(function () {
192-
if (locale === undefined) {
193-
return;
194-
} else if (locale !== curLocale) {
191+
Dialogs.showModalDialogUsingTemplate(template).done(function (id) {
192+
if (id === Dialogs.DIALOG_BTN_OK && locale !== curLocale) {
195193
brackets.setLocale(locale);
196194
CommandManager.execute(DEBUG_REFRESH_WINDOW);
197195
}

0 commit comments

Comments
 (0)