<div dir="ltr">Hi Victor,<div><br></div><div>Very cool! I&#39;m very happy that you have tried to write your first Tern plugin. I love Tern!</div><div><br></div><div>For your information, I&#39;m studying how to add custom Tern plugin + Tern def in Tern IDE.</div>
<div><br></div><div>I suggest you to synchronizeto my GitHub  because</div><div><br></div><div>1)  I have improved Tern console (now you have some colors)</div><div>2) completion popop  is improved (Parameters is well formatted in the second popup).</div>
<div>3) if you have optional parameters like config: &quot;fn(config: ?) -&gt; !custom:cordovaJSConfig&quot;, completion expand it by showing 2 compeltion items (with and without config parameter).</div><div><br></div><div>
IMHO think you should contribute to tern.js. If you want I can host your tern plugin for the moment.</div><div><br></div><div>Regards Angelo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-13 15:19 GMT+01:00 Victor Rubezhny <span dir="ltr">&lt;<a href="mailto:vrubezhny@exadel.com" target="_blank">vrubezhny@exadel.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi, guys!<br>
    <br>
    While playing with Tern I was able to make a very simple plugin that
    allows to show &#39;cordova&#39; object and some of its members in Content
    Assist.<br>
    <br>
    <img alt="" src="cid:part1.00060702.06060606@exadel.com" height="585" width="1102"><br>
    <br>
    This is a very first and simple script that shows &#39;cordova&#39; object
    and its members in content assistant without requiring to have any
    kind of cordova.js included to a project.<br>
    But it requires:<br>
    - to have Tern.java (updated with cordovajs.js plugin)<br>
    - to have Tern nature enabled on your project<br>
    - to have cordovajs plug-in enabled in project&#39;s Turn preferences.<br>
    <br>
    You can look at the code changes in my branch on GitHub:
    <a href="https://github.com/vrubezhny/tern.java/tree/cordovajs" target="_blank">https://github.com/vrubezhny/tern.java/tree/cordovajs</a> (currently
    it&#39;s rebased over agelozerr&#39;s master)<br>
    There are no any special inference done due to get some
    objects/values from the modules that are loaded by require/define
    functionality. <br>
    This probably will require more sophisticated coding to be done.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    /Victor<br>
    <br>
  </font></span></div>

<br>_______________________________________________<br>
jbosstools-dev mailing list<br>
<a href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a><br></blockquote></div><br></div>