Skip to content

Commit 987ab76

Browse files
authored
fix: enableLiveAutocompletion documentation (#4976)
* some typings fixed * enableLiveAutocompletion documentation fixed
1 parent e1ee46c commit 987ab76

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

ace.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ export namespace Ace {
397397
canRedo(): boolean;
398398
bookmark(rev?: number): void;
399399
isAtBookmark(): boolean;
400+
hasUndo(): boolean;
401+
hasRedo(): boolean;
402+
isClean(): boolean;
403+
markClean(rev?: number): void;
400404
}
401405

402406
export interface Position {
@@ -459,7 +463,7 @@ export namespace Ace {
459463
inFront?: boolean): number;
460464
addDynamicMarker(marker: MarkerLike, inFront: boolean): MarkerLike;
461465
removeMarker(markerId: number): void;
462-
getMarkers(inFront?: boolean): MarkerLike[];
466+
getMarkers(inFront?: boolean): {[id: number]: MarkerLike};
463467
highlight(re: RegExp): void;
464468
highlightLines(startRow: number,
465469
endRow: number,

src/ext/language_tools.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,12 @@ require("../config").defineOptions(Editor.prototype, "editor", {
162162
value: false
163163
},
164164
/**
165-
* Enable live autocomplete. If the value is an array, it is assumed to be an array of completers
166-
* and will use them instead of the default completers.
165+
* Enable live autocompletion
167166
*/
168167
enableLiveAutocompletion: {
168+
/**
169+
* @param {boolean} val
170+
*/
169171
set: function(val) {
170172
if (val) {
171173
if (!this.completers)

0 commit comments

Comments
 (0)