diff --git a/ace.d.ts b/ace.d.ts index 186c3af4731..4509ca29e2f 100644 --- a/ace.d.ts +++ b/ace.d.ts @@ -397,6 +397,10 @@ export namespace Ace { canRedo(): boolean; bookmark(rev?: number): void; isAtBookmark(): boolean; + hasUndo(): boolean; + hasRedo(): boolean; + isClean(): boolean; + markClean(rev?: number): void; } export interface Position { @@ -459,7 +463,7 @@ export namespace Ace { inFront?: boolean): number; addDynamicMarker(marker: MarkerLike, inFront: boolean): MarkerLike; removeMarker(markerId: number): void; - getMarkers(inFront?: boolean): MarkerLike[]; + getMarkers(inFront?: boolean): {[id: number]: MarkerLike}; highlight(re: RegExp): void; highlightLines(startRow: number, endRow: number, diff --git a/src/ext/language_tools.js b/src/ext/language_tools.js index 2cfa7bb831c..943e4af9b1e 100644 --- a/src/ext/language_tools.js +++ b/src/ext/language_tools.js @@ -162,10 +162,12 @@ require("../config").defineOptions(Editor.prototype, "editor", { value: false }, /** - * Enable live autocomplete. If the value is an array, it is assumed to be an array of completers - * and will use them instead of the default completers. + * Enable live autocompletion */ enableLiveAutocompletion: { + /** + * @param {boolean} val + */ set: function(val) { if (val) { if (!this.completers)