Skip to content

Commit

Permalink
package 19.09.23
Browse files Browse the repository at this point in the history
  • Loading branch information
akoreman committed Sep 19, 2023
1 parent e74e4b9 commit 480d8ed
Show file tree
Hide file tree
Showing 20 changed files with 55 additions and 19 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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.27.0](https://github.com/ajaxorg/ace/compare/v1.26.0...v1.27.0) (2023-09-19)


### Features

* 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))

## [1.26.0](https://github.com/ajaxorg/ace/compare/v1.25.1...v1.26.0) (2023-09-15)


Expand Down
3 changes: 2 additions & 1 deletion ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,8 @@ export namespace Ace {
getDocTooltip?(item: Completion): undefined | string | Completion;
cancel?(): void;
id?: string;
triggerCharacters?: string[]
triggerCharacters?: string[];
hideInlinePreview?: boolean;
}

export class AceInline {
Expand Down
6 changes: 5 additions & 1 deletion demo/kitchen-sink/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5529,7 +5529,7 @@ var AceInline = /** @class */ (function () {
return false;
}
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
if (!displayText || !displayText.startsWith(prefix)) {
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
return false;
}
this.editor = editor;
Expand Down Expand Up @@ -6170,6 +6170,10 @@ var CompletionProvider = /** @class */ (function () {
var total = editor.completers.length;
editor.completers.forEach(function (completer, i) {
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
if (completer.hideInlinePreview)
results = results.map(function (result) {
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
});
if (!err && results)
matches = matches.concat(results);
callback(null, {
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.26.0",
"version": "1.27.0",
"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/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.

2 changes: 1 addition & 1 deletion src-noconflict/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ var reportErrorIfPathIsNotConfigured = function () {
reportErrorIfPathIsNotConfigured = function () { };
}
};
exports.version = "1.26.0";
exports.version = "1.27.0";

});

Expand Down
6 changes: 5 additions & 1 deletion src-noconflict/ext-inline_autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ var AceInline = /** @class */ (function () {
return false;
}
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
if (!displayText || !displayText.startsWith(prefix)) {
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
return false;
}
this.editor = editor;
Expand Down Expand Up @@ -1958,6 +1958,10 @@ var CompletionProvider = /** @class */ (function () {
var total = editor.completers.length;
editor.completers.forEach(function (completer, i) {
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
if (completer.hideInlinePreview)
results = results.map(function (result) {
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
});
if (!err && results)
matches = matches.concat(results);
callback(null, {
Expand Down
6 changes: 5 additions & 1 deletion src-noconflict/ext-language_tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ var AceInline = /** @class */ (function () {
return false;
}
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
if (!displayText || !displayText.startsWith(prefix)) {
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
return false;
}
this.editor = editor;
Expand Down Expand Up @@ -1958,6 +1958,10 @@ var CompletionProvider = /** @class */ (function () {
var total = editor.completers.length;
editor.completers.forEach(function (completer, i) {
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
if (completer.hideInlinePreview)
results = results.map(function (result) {
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
});
if (!err && results)
matches = matches.concat(results);
callback(null, {
Expand Down
6 changes: 5 additions & 1 deletion src-noconflict/ext-prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ var AceInline = /** @class */ (function () {
return false;
}
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
if (!displayText || !displayText.startsWith(prefix)) {
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
return false;
}
this.editor = editor;
Expand Down Expand Up @@ -1958,6 +1958,10 @@ var CompletionProvider = /** @class */ (function () {
var total = editor.completers.length;
editor.completers.forEach(function (completer, i) {
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
if (completer.hideInlinePreview)
results = results.map(function (result) {
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
});
if (!err && results)
matches = matches.concat(results);
callback(null, {
Expand Down
2 changes: 1 addition & 1 deletion src/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ var reportErrorIfPathIsNotConfigured = function () {
reportErrorIfPathIsNotConfigured = function () { };
}
};
exports.version = "1.26.0";
exports.version = "1.27.0";

});

Expand Down
6 changes: 5 additions & 1 deletion src/ext-inline_autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ var AceInline = /** @class */ (function () {
return false;
}
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
if (!displayText || !displayText.startsWith(prefix)) {
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
return false;
}
this.editor = editor;
Expand Down Expand Up @@ -1958,6 +1958,10 @@ var CompletionProvider = /** @class */ (function () {
var total = editor.completers.length;
editor.completers.forEach(function (completer, i) {
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
if (completer.hideInlinePreview)
results = results.map(function (result) {
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
});
if (!err && results)
matches = matches.concat(results);
callback(null, {
Expand Down
6 changes: 5 additions & 1 deletion src/ext-language_tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ var AceInline = /** @class */ (function () {
return false;
}
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
if (!displayText || !displayText.startsWith(prefix)) {
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
return false;
}
this.editor = editor;
Expand Down Expand Up @@ -1958,6 +1958,10 @@ var CompletionProvider = /** @class */ (function () {
var total = editor.completers.length;
editor.completers.forEach(function (completer, i) {
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
if (completer.hideInlinePreview)
results = results.map(function (result) {
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
});
if (!err && results)
matches = matches.concat(results);
callback(null, {
Expand Down
6 changes: 5 additions & 1 deletion src/ext-prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ var AceInline = /** @class */ (function () {
return false;
}
var displayText = completion.snippet ? snippetManager.getDisplayTextForSnippet(editor, completion.snippet) : completion.value;
if (!displayText || !displayText.startsWith(prefix)) {
if (completion.hideInlinePreview || !displayText || !displayText.startsWith(prefix)) {
return false;
}
this.editor = editor;
Expand Down Expand Up @@ -1958,6 +1958,10 @@ var CompletionProvider = /** @class */ (function () {
var total = editor.completers.length;
editor.completers.forEach(function (completer, i) {
completer.getCompletions(editor, session, pos, prefix, function (err, results) {
if (completer.hideInlinePreview)
results = results.map(function (result) {
return Object.assign(result, { hideInlinePreview: completer.hideInlinePreview });
});
if (!err && results)
matches = matches.concat(results);
callback(null, {
Expand Down

0 comments on commit 480d8ed

Please sign in to comment.