Update language_tools.js
Added removeCompleters() function to language tools exports as it is not possible to access the completers array directly. This is currently utilized by Ace GWT to cleardown existing completers (for entirely programmatic completers without snippets or keyword completions) but I feel it belongs in the mainline (I have to manage a fork at the moment and there seems to be no other workaround).
This commit is contained in:
parent
54e022fab2
commit
9b8385b07d
1 changed files with 4 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ var snippetCompleter = {
|
|||
}
|
||||
};
|
||||
|
||||
exports.removeCompleters = function() {
|
||||
completers = [];
|
||||
};
|
||||
|
||||
var completers = [snippetCompleter, textCompleter, keyWordCompleter];
|
||||
exports.addCompleter = function(completer) {
|
||||
completers.push(completer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue