Skip to content

Commit 25a471a

Browse files
authored
fix: editor.completer would init on enableBasicAutocompletion option true (#5756)
1 parent b20be1a commit 25a471a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ext/language_tools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ require("../config").defineOptions(Editor.prototype, "editor", {
183183
*/
184184
set: function(val) {
185185
if (val) {
186+
Autocomplete.for(this);
187+
186188
if (!this.completers)
187189
this.completers = Array.isArray(val)? val: completers;
188190
this.commands.addCommand(Autocomplete.startCommand);

0 commit comments

Comments
 (0)