no cache as its storing reference in filtered list
This commit is contained in:
parent
68d531ecb2
commit
662cd11975
1 changed files with 1 additions and 4 deletions
|
|
@ -52,12 +52,10 @@ oop.inherits(Mode, TextMode);
|
|||
* and use smart meta tags instead of 'keyword' for all completions.
|
||||
*/
|
||||
this.getCompletions = function(state, session, pos, prefix) {
|
||||
if (this.getCompletionsResult) return this.getCompletionsResult;
|
||||
|
||||
var keywords = this.$keywordList || this.$createKeywordList();
|
||||
var types = session.$mode.$highlightRules.keywordTypes;
|
||||
|
||||
this.getCompletionsResult = keywords.map(function(word) {
|
||||
return keywords.map(function(word) {
|
||||
var meta = 'keyword';
|
||||
if (types.builtInStoredProcedures.indexOf(word) !== -1) meta = "procedure";
|
||||
else {
|
||||
|
|
@ -74,7 +72,6 @@ oop.inherits(Mode, TextMode);
|
|||
meta: meta
|
||||
};
|
||||
});
|
||||
return this.getCompletionsResult;
|
||||
};
|
||||
|
||||
this.$id = "ace/mode/sql";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue