Skip to content

Commit

Permalink
package 29.12.23
Browse files Browse the repository at this point in the history
  • Loading branch information
oykuyilmaz committed Dec 29, 2023
1 parent e779351 commit 5156789
Show file tree
Hide file tree
Showing 28 changed files with 169 additions and 89 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,15 @@

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.32.3](https://github.com/ajaxorg/ace/compare/v1.32.2...v1.32.3) (2023-12-29)


### Bug Fixes

* improve prefixing for inline preview ([#5439](https://github.com/ajaxorg/ace/issues/5439)) ([51006bb](https://github.com/ajaxorg/ace/commit/51006bba9c60b97251ddb04ed74f68ba4e7f6b54))
* update ghost text if on same line popup ([12f4664](https://github.com/ajaxorg/ace/commit/12f466460d7187cfe37593dab1fbe275403fedd3))
* updated red color in cloud-editor dark theme ([#5432](https://github.com/ajaxorg/ace/issues/5432)) ([142b607](https://github.com/ajaxorg/ace/commit/142b607578f5d071a5026691ff6662c11e9f186b))

### [1.32.2](https://github.com/ajaxorg/ace/compare/v1.32.1...v1.32.2) (2023-12-14)


Expand Down
10 changes: 5 additions & 5 deletions css/theme/cloud_editor_dark.css
Expand Up @@ -101,7 +101,7 @@

.ace-cloud_editor_dark .ace_invalid.ace_illegal {
color: #dcdfe4;
background-color: #e76a71;
background-color: #e96a71;
}

.ace-cloud_editor_dark .ace_invalid.ace_deprecated {
Expand All @@ -124,7 +124,7 @@
}

.ace-cloud_editor_dark .ace_variable {
color: #e76a71;
color: #e96a71;
}

.ace-cloud_editor_dark .ace_meta.ace_selector {
Expand All @@ -140,7 +140,7 @@
}

.ace-cloud_editor_dark .ace_entity.ace_name.ace_tag {
color: #e76a71;
color: #e96a71;
}
.ace-cloud_editor_dark .ace_heading {
color: #66b2f0;
Expand All @@ -150,15 +150,15 @@
color: #e5c383;
}
.ace-cloud_editor_dark .ace_doctype {
color: #e76a71;
color: #e96a71;
}

.ace-cloud_editor_dark .ace_entity.ace_name.ace_tag,
.ace-cloud_editor_dark .ace_entity.ace_other.ace_attribute-name,
.ace-cloud_editor_dark .ace_meta.ace_tag,
.ace-cloud_editor_dark .ace_string.ace_regexp,
.ace-cloud_editor_dark .ace_variable {
color: #e76a71;
color: #e96a71;
}

.ace-cloud_editor_dark .ace_tooltip {
Expand Down
25 changes: 18 additions & 7 deletions demo/kitchen-sink/demo.js
Expand Up @@ -5814,13 +5814,7 @@ var Autocomplete = /** @class */ (function () {
Autocomplete.prototype.$onPopupChange = function (hide) {
if (this.inlineRenderer && this.inlineEnabled) {
var completion = hide ? null : this.popup.getData(this.popup.getRow());
var prefix = util.getCompletionPrefix(this.editor);
if (!this.inlineRenderer.show(this.editor, completion, prefix)) {
this.inlineRenderer.hide();
}
else {
this.$seen(completion);
}
this.$updateGhostText(completion);
if (this.popup.isMouseOver && this.setSelectOnHover) {
this.tooltipTimer.call(null, null);
return;
Expand All @@ -5833,6 +5827,18 @@ var Autocomplete = /** @class */ (function () {
this.tooltipTimer.call(null, null);
}
};
Autocomplete.prototype.$updateGhostText = function (completion) {
var row = this.base.row;
var column = this.base.column;
var cursorColumn = this.editor.getCursorPosition().column;
var prefix = this.editor.session.getLine(row).slice(column, cursorColumn);
if (!this.inlineRenderer.show(this.editor, completion, prefix)) {
this.inlineRenderer.hide();
}
else {
this.$seen(completion);
}
};
Autocomplete.prototype.$onPopupRender = function () {
var inlineEnabled = this.inlineRenderer && this.inlineEnabled;
if (this.completions && this.completions.filtered && this.completions.filtered.length > 0) {
Expand Down Expand Up @@ -5936,6 +5942,11 @@ var Autocomplete = /** @class */ (function () {
this.popup.setRow(this.autoSelect ? newRow : -1);
if (newRow === oldRow && previousSelectedItem !== this.completions.filtered[newRow])
this.$onPopupChange();
var inlineEnabled = this.inlineRenderer && this.inlineEnabled;
if (newRow === oldRow && inlineEnabled) {
var completion = this.popup.getData(this.popup.getRow());
this.$updateGhostText(completion);
}
if (!keepPopupPosition) {
this.popup.setTheme(editor.getTheme());
this.popup.setFontSize(editor.getFontSize());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "ace-builds",
"main": "./src-noconflict/ace.js",
"typings": "ace.d.ts",
"version": "1.32.2",
"version": "1.32.3",
"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/ext-inline_autocomplete.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/ext-language_tools.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/ext-prompt.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/theme-cloud_editor_dark.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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/ext-inline_autocomplete.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

0 comments on commit 5156789

Please sign in to comment.