Skip to content

Commit

Permalink
fix: enableLiveAutocompletion documentation (#4976)
Browse files Browse the repository at this point in the history
* some typings fixed

* enableLiveAutocompletion documentation fixed
  • Loading branch information
anijanyan authored Oct 31, 2022
1 parent e1ee46c commit 987ab76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 4 additions & 2 deletions src/ext/language_tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 987ab76

Please sign in to comment.