no cache as its storing reference in filtered list

This commit is contained in:
sevin7676 2015-04-20 05:08:54 -04:00
commit 662cd11975

View file

@ -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";