<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">On 03/14/2014 02:38 AM, Denis Golovin
wrote:<br>
</div>
<blockquote cite="mid:53223377.6050209@exadel.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 03/13/2014 07:45 AM, Victor
Rubezhny wrote:<br>
</div>
<blockquote cite="mid:5321C499.2090006@exadel.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<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>
</div>
</blockquote>
<br>
Victor, dot be shy :) This plugin is a good start. Could you at
least put it into your fork somewhere?<br>
<br>
</blockquote>
I thought you will peek it up into your fork first :)<br>
<br>
The reasons: <br>
1) To play with.<br>
2) To give your opinion on what needs to be fixed and what to do
next<br>
3) Isn't your fork a candidate to be a source for JBT?<br>
<br>
I'd like Denis and Gorkem to find a time to play with and tell their
opinion on what needs to be improved. <br>
There are many objects/variables/functions that weren't covered by
this plugin yet. Adding a support for some of them requires to do a
more sophisticated processing.<br>
So, I'd like to know what has to be added in addition to what's
already in. And probably some comments on accuracy (like correctness
of types, arguments, return values and so on).<br>
<br>
I need your opinion.<br>
<br>
/Victor<br>
<br>
<blockquote cite="mid:53223377.6050209@exadel.com" type="cite">
Thanks<br>
Denis<br>
<br>
<br>
<blockquote cite="mid:5321C499.2090006@exadel.com" type="cite">
<div class="moz-cite-prefix"> <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.06080908.05090002@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>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>