Skip to content

Commit 480d8ed

Browse files
committed
package 19.09.23
1 parent e74e4b9 commit 480d8ed

20 files changed

+55
-19
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
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.
44

5+
## [1.27.0](https://github.com/ajaxorg/ace/compare/v1.26.0...v1.27.0) (2023-09-19)
6+
7+
8+
### Features
9+
10+
* Allow not showing inline preview for completers when `inlineEnabled` is set to `true`. ([#5315](https://github.com/ajaxorg/ace/issues/5315)) ([f3e3330](https://github.com/ajaxorg/ace/commit/f3e333041fc1a687b3ce35a44f1bf00bcc15a236))
11+
512
## [1.26.0](https://github.com/ajaxorg/ace/compare/v1.25.1...v1.26.0) (2023-09-15)
613

714

ace.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,8 @@ export namespace Ace {
10141014
getDocTooltip?(item: Completion): undefined | string | Completion;
10151015
cancel?(): void;
10161016
id?: string;
1017-
triggerCharacters?: string[]
1017+
triggerCharacters?: string[];
1018+
hideInlinePreview?: boolean;
10181019
}
10191020

10201021
export class AceInline {

demo/kitchen-sink/demo.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5529,7 +5529,7 @@ var AceInline = /** @class */ (function () {
55295529
return false;
55305530
}
55315531
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
5532-
if (!displayText || !displayText.startsWith(prefix)) {
5532+
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
55335533
return false;
55345534
}
55355535
this.editor = editor;
@@ -6170,6 +6170,10 @@ var CompletionProvider = /** @class */ (function () {
61706170
var total = editor.completers.length;
61716171
editor.completers.forEach(function (completer, i) {
61726172
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
6173+
if (completer.hideInlinePreview)
6174+
results = results.map(function (result) {
6175+
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
6176+
});
61736177
if (!err && results)
61746178
matches = matches.concat(results);
61756179
callback(null, {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ace-builds",
33
"main": "./src-noconflict/ace.js",
44
"typings": "ace.d.ts",
5-
"version": "1.26.0",
5+
"version": "1.27.0",
66
"description": "Ace (Ajax.org Cloud9 Editor)",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1"

src-min-noconflict/ace.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-inline_autocomplete.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-language_tools.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min-noconflict/ext-prompt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min/ace.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-min/ext-inline_autocomplete.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)