<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Angelo,<br>
<br>
Really appreciate your work and trying to always have projects
up-to-date with your latest changes.<br>
<br>
We need to add some support cordovajs applications, and it looks
like it's really effective and pretty easy to do with Tern.<br>
But, obviously, I need some more time to get some suitable result
here. The current one is a very first and simple code that doesn't
cover all the requirements, so, it's too early to contribute
something back to Tern.<br>
Once we decide that we achieved some suitable result, I'll propose
it to be contributed back to Tern.java.<br>
<br>
Best Regards,<br>
Victor<br>
<br>
On 03/13/2014 06:31 PM, Angelo zerr wrote:<br>
</div>
<blockquote
cite="mid:CAKLdLg-TEcBHdDR+=58emAFk8b03npTpYEjyazCEU+0EBm2KXg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Victor,
<div><br>
</div>
<div>Very cool! I'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'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: "fn(config:
?) -> !custom:cordovaJSConfig", 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"><<a moz-do-not-send="true"
href="mailto:vrubezhny@exadel.com" target="_blank">vrubezhny@exadel.com</a>></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 'cordova' object and some of
its members in Content Assist.<br>
<br>
<img alt="" src="cid:part2.02050104.05000607@exadel.com"
height="585" width="1102"><br>
<br>
This is a very first and simple script that shows
'cordova' 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's Turn
preferences.<br>
<br>
You can look at the code changes in my branch on GitHub: <a
moz-do-not-send="true"
href="https://github.com/vrubezhny/tern.java/tree/cordovajs"
target="_blank">https://github.com/vrubezhny/tern.java/tree/cordovajs</a>
(currently it's rebased over agelozerr'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 moz-do-not-send="true"
href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
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>
</blockquote>
<br>
</body>
</html>