Skip to content

Commit

Permalink
package 07.12.22
Browse files Browse the repository at this point in the history
  • Loading branch information
andredcoliveira committed Dec 7, 2022
1 parent fdab4a6 commit 44279f4
Show file tree
Hide file tree
Showing 172 changed files with 7,534 additions and 1,105 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.13.2](https://github.com/ajaxorg/ace/compare/v1.13.1...v1.13.2) (2022-12-07)


### Bug Fixes

* Add missing options to `EditorOptions` ([#5003](https://github.com/ajaxorg/ace/issues/5003)) ([451b63f](https://github.com/ajaxorg/ace/commit/451b63f2243762d6de2fc5b9ee8c580c348b933c))
* Better ES6 support for JavaScript Mode ([6fb39e3](https://github.com/ajaxorg/ace/commit/6fb39e38c79dd966233e48ed06be800c59c4c101))
* Fix vim keybindings scroll to the selected line ([#4980](https://github.com/ajaxorg/ace/issues/4980)) ([8562f94](https://github.com/ajaxorg/ace/commit/8562f9493e0ebef865064992f0526fdc6df8535a))
* show 2 context characters of a line when moving to it ([#4998](https://github.com/ajaxorg/ace/issues/4998)) ([743190e](https://github.com/ajaxorg/ace/commit/743190ea71841c0186b2f513b3d1e1a9e30d3de3))

### [1.13.1](https://github.com/ajaxorg/ace/compare/v1.13.0...v1.13.1) (2022-11-16)


Expand Down
5 changes: 4 additions & 1 deletion ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ export namespace Ace {
behavioursEnabled: boolean;
wrapBehavioursEnabled: boolean;
enableAutoIndent: boolean;
enableBasicAutocompletion: boolean | Completer[],
enableLiveAutocompletion: boolean | Completer[],
enableSnippets: boolean,
autoScrollEditorIntoView: boolean;
keyboardHandler: string | null;
placeholder: string;
Expand Down Expand Up @@ -936,4 +939,4 @@ export const Range: {
new(startRow: number, startColumn: number, endRow: number, endColumn: number): Ace.Range;
fromPoints(start: Ace.Point, end: Ace.Point): Ace.Range;
comparePoints(p1: Ace.Point, p2: Ace.Point): number;
};
};
2 changes: 1 addition & 1 deletion kitchen-sink.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="author" content="Fabian Jakobs">
<!--
Ace
version 1.13.1
version 1.13.2
commit
-->

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ace-builds",
"main": "./src-noconflict/ace.js",
"typings": "ace.d.ts",
"version": "1.13.1",
"version": "1.13.2",
"description": "Ace (Ajax.org Cloud9 Editor)",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion src-min-noconflict/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/keybinding-vim.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-coldfusion.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-csound_document.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-curly.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-django.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-ejs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-ftl.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-gobstones.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-groovy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-haml.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-handlebars.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-html.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-html_elixir.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-html_ruby.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-jade.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-java.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-javascript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-jsp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-latte.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-liquid.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-luapage.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-markdown.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-mask.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-nunjucks.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-pgsql.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-php.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-php_laravel_blade.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-razor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-rhtml.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-scala.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-sjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-slim.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-smarty.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-soy_template.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-svg.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-tsx.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-twig.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-typescript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-velocity.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-visualforce.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/mode-wollok.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/keybinding-vim.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-coldfusion.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-csound_document.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-curly.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-django.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-ejs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-ftl.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-gobstones.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-groovy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-haml.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-handlebars.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-html.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-html_elixir.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-html_ruby.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-jade.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-java.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-javascript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-jsp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-latte.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-liquid.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-luapage.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-markdown.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-mask.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-nunjucks.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-pgsql.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-php.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-php_laravel_blade.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-razor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-rhtml.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-scala.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-sjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-slim.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-smarty.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-soy_template.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-svg.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-tsx.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-twig.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-typescript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-velocity.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-visualforce.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/mode-wollok.js

Large diffs are not rendered by default.

62 changes: 34 additions & 28 deletions src-noconflict/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ var reportErrorIfPathIsNotConfigured = function () {
reportErrorIfPathIsNotConfigured = function () { };
}
};
exports.version = "1.13.1";
exports.version = "1.13.2";

});

Expand Down Expand Up @@ -14734,7 +14734,7 @@ var Marker = function (parentEl) {
var selections = this.session.$bidiHandler.getSelections(range.start.column, range.end.column);
selections.forEach(function (selection) {
this.elt(clazz, "height:" + height + "px;" +
"width:" + selection.width + (extraLength || 0) + "px;" +
"width:" + (selection.width + (extraLength || 0)) + "px;" +
"top:" + top + "px;" +
"left:" + (padding + selection.left) + "px;" + (extraStyle || ""));
}, this);
Expand Down Expand Up @@ -17097,37 +17097,43 @@ var VirtualRenderer = function (container, theme) {
if (this.$size.scrollerHeight === 0)
return;
var pos = this.$cursorLayer.getPixelPosition(cursor);
var left = pos.left;
var top = pos.top;
var newLeft = pos.left;
var newTop = pos.top;
var topMargin = $viewMargin && $viewMargin.top || 0;
var bottomMargin = $viewMargin && $viewMargin.bottom || 0;
if (this.$scrollAnimation) {
this.$stopAnimation = true;
}
var scrollTop = this.$scrollAnimation ? this.session.getScrollTop() : this.scrollTop;
if (scrollTop + topMargin > top) {
if (offset && scrollTop + topMargin > top + this.lineHeight)
top -= offset * this.$size.scrollerHeight;
if (top === 0)
top = -this.scrollMargin.top;
this.session.setScrollTop(top);
}
else if (scrollTop + this.$size.scrollerHeight - bottomMargin < top + this.lineHeight) {
if (offset && scrollTop + this.$size.scrollerHeight - bottomMargin < top - this.lineHeight)
top += offset * this.$size.scrollerHeight;
this.session.setScrollTop(top + this.lineHeight + bottomMargin - this.$size.scrollerHeight);
}
var scrollLeft = this.scrollLeft;
if (scrollLeft > left) {
if (left < this.$padding + 2 * this.layerConfig.characterWidth)
left = -this.scrollMargin.left;
this.session.setScrollLeft(left);
}
else if (scrollLeft + this.$size.scrollerWidth < left + this.characterWidth) {
this.session.setScrollLeft(Math.round(left + this.characterWidth - this.$size.scrollerWidth));
}
else if (scrollLeft <= this.$padding && left - scrollLeft < this.characterWidth) {
this.session.setScrollLeft(0);
var currentTop = this.$scrollAnimation ? this.session.getScrollTop() : this.scrollTop;
if (currentTop + topMargin > newTop) {
if (offset && currentTop + topMargin > newTop + this.lineHeight)
newTop -= offset * this.$size.scrollerHeight;
if (newTop === 0)
newTop = -this.scrollMargin.top;
this.session.setScrollTop(newTop);
}
else if (currentTop + this.$size.scrollerHeight - bottomMargin < newTop + this.lineHeight) {
if (offset && currentTop + this.$size.scrollerHeight - bottomMargin < newTop - this.lineHeight)
newTop += offset * this.$size.scrollerHeight;
this.session.setScrollTop(newTop + this.lineHeight + bottomMargin - this.$size.scrollerHeight);
}
var currentLeft = this.scrollLeft;
var twoCharsWidth = 2 * this.layerConfig.characterWidth;
if (newLeft - twoCharsWidth < currentLeft) {
newLeft -= twoCharsWidth;
if (newLeft < this.$padding + twoCharsWidth) {
newLeft = -this.scrollMargin.left;
}
this.session.setScrollLeft(newLeft);
}
else {
newLeft += twoCharsWidth;
if (currentLeft + this.$size.scrollerWidth < newLeft + this.characterWidth) {
this.session.setScrollLeft(Math.round(newLeft + this.characterWidth - this.$size.scrollerWidth));
}
else if (currentLeft <= this.$padding && newLeft - currentLeft < this.characterWidth) {
this.session.setScrollLeft(0);
}
}
};
this.getScrollTop = function () {
Expand Down
4 changes: 3 additions & 1 deletion src-noconflict/keybinding-vim.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ CodeMirror.isWordChar = function (ch) {
var result = fn();
if (this.ace.curOp && this.ace.curOp.command.name == "vim") {
if (this.state.dialog)
this.ace.curOp.command.scrollIntoView = false;
this.ace.curOp.command.scrollIntoView = this.ace.curOp.vimDialogScroll;
this.ace.endOperation();
if (!curOp.cursorActivity && !curOp.lastChange && prevOp)
this.ace.prevOp = prevOp;
Expand Down Expand Up @@ -2438,6 +2438,8 @@ var commandDispatcher = {
: newAnchor);
}
else if (!operator) {
if (cm.ace.curOp)
cm.ace.curOp.vimDialogScroll = "center-animate"; // ace_patch
newHead = clipCursorToContent(cm, newHead, oldHead);
cm.setCursor(newHead.line, newHead.ch);
}
Expand Down
Loading

0 comments on commit 44279f4

Please sign in to comment.