Sha256: 6e4ac3b1baa847421725a26d88513bc3c89888a4ffc40265f4ac5846f1bac88a
Contents?: true
Size: 817 Bytes
Versions: 32
Compression:
Stored size: 817 Bytes
Contents
!(angular => { 'use strict'; class AceCompleters { constructor(SchemaCompleter, KeywordCompleter) { this.langTools = ace.require('ace/ext/language_tools'); this.schemaCompleter = new SchemaCompleter(); this.keywordCompleter = new KeywordCompleter(); } ensureSchemasData() { if (!this.schemaCompleter.isLoaded()) { return this.schemaCompleter.loadColumnData(); } } setCompleters() { this.langTools.setCompleters([ this.schemaCompleter, this.keywordCompleter, this.langTools.textCompleter, this.langTools.snippetCompleter ]); } } AceCompleters.$inject = ['SchemaCompleter', 'KeywordCompleter']; angular.module('alephServices.aceCompleters', []).service('AceCompleters', AceCompleters); }(angular));
Version data entries
32 entries across 16 versions & 1 rubygems