app/js/containers/TextEditorContainer.js
// Note: intellisence is currently supported for javascript only.
intellisence is currently supported for javascript only.
intellisence is currently supported for javascript only .
enableLanguageIntellisence() {
    const useWebWorker = window.location.search.toLowerCase().indexOf('noworker');
    this.aceEditor.getSession().setUseWorker(useWebWorker);
    ace.config.loadModule('ace/ext/tern', () => {
      let self = this
      this.aceEditor.setOptions({
        enableTern: {
          defs: ['browser', 'ecma5'],
          plugins: {
            doc_comment: {
              fullDocs: true
            }
          },
          useWorker: useWebWorker,
          switchToDoc(name, start) {
            console.log('switchToDoc called but not defined. name=' + name + '; start=', start);
          },
          startedCb() {
            console.log('editor.ternServer:', self.aceEditor.ternServer);
          },
        },
        enableBasicAutocompletion: true
      });
    });
  }
enableLanguageIntellisence ( ) { const useWebWorker = window . location . search . toLowerCase ( ) . indexOf ( 'noworker' ) ; this . aceEditor . getSession ( ) . setUseWorker ( useWebWorker ) ; ace . config . loadModule ( 'ace/ext/tern' , ( ) => { let self = this this . aceEditor . setOptions ( { enableTern : { defs : [ 'browser' , 'ecma5' ] , plugins : { doc_comment : { fullDocs : true } } , useWorker : useWebWorker , switchToDoc ( name , start ) { console . log ( 'switchToDoc called but not defined. name=' + name + '; start=' , start ) ; } , startedCb ( ) { console . log ( 'editor.ternServer:' , self . aceEditor . ternServer ) ; } , } , enableBasicAutocompletion : true } ) ; } ) ; }
Note: intellisence is currently supported for javascript only.
Note : intellisence is currently supported for javascript only .