Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] JSDT meeting agenda 20151103

On 4 Nov 2015, at 4:28, Angelo zerr wrote:

Hi Gorkem,

Here some information I would like to tell you:

* JavaScript Debugger. It should be very cool if someone could implement a debuger for to debug ternjs like Webclipse and Nodeclipse have done
This feature is soon finished and it gives you the capability to debug
ternjs en your custom tern plugin with Eclipse IDE. You select the debugger you wish with a NodeJS preferences, you set a breakpoint in the tern.js file (ex: where completion is executed). You open a JS editor and you do Ctrl+Space and debugger stops to the breakpoint. So now it's very
easy to debug ternjs with Eclipse IDE.

* TypeScript Langage Service. I have studied that at first by playing with


And I find there are a big problem with performance: my Eclipse freezes
I have noticed the freeze as well but it is not due to typescript compiler
but more of an issue on how it is used with eclipse.

The attractive points on typescript compiler was it actually provides
a bunch of services for IDEs that could allow us to replace the
corresponding outdated JSDT ones. Also the number of type definition
libraries is very extensive for typescript.

Anyhow, this was a quick experimentation on my part and I am not convinced
it is the way forward

To be honnest with you, I don't understand what you mean with "Can be used as an alternate to tern.js". TypeScript needs to declare variable with type (ex: var p: Person) although JavaScript needs not that and ternjs is able
to guess the type.
Agreed. typescript compiler does not seem to provide inference in this case. It relies on
modules and module definitions.

In my side, I have started to study how we could support
Angular2 which is based on TypeScript and I have
several ideas to support TypeScript with

* TypeScript provides a tsserver which uses TypeScript Language Service. It works with "readline" and not with "http" ( works only with
What is the advantage of http over readLine?

My first idea is to use TypeScript Language Service inside by customizing JSON request/response of tsserver to adapt it for ternjs. See project What is the benefit with existing Eclipse TypeScript plugins: the async completion of
which avoid freezing Eclipse.

* my second idea (my prefered idea, but which is hard) is to implement an acorn plugin for TypeScript like
have done for JSX. I have started at . Today I can support declaration type like (var a: Person). The benefit with
that is that we will able to use tern plugins features to customize
completion for Angular2.

This is probably the case that I would like JSDT to support better. I
hope we can replace the JSDT parser with a pluggable one like acorn. I
know that there is an interest to extend JSDT to things like QML as well so
a pluggable parser will help.

Another advantage of this approach will be the AST can be shared among tools avoiding extra parsing. ESTree seems to be the de-factor standard for JavaScript AST, it would be grand if we can support ESTree natively on JSDT so that it is shared among libraries/tools and
avoiding repeated parsing.

Regard's Angelo

2015-11-03 21:19 GMT+01:00 Gorkem Ercan <gorkem.ercan@xxxxxxxxx>:

Updated the agenda with minutes.

On 3 Nov 2015, at 10:30, Gorkem Ercan wrote:

Meeting agenda for today's JSDT call is up. As usual, please feel free to
add items.

wtp-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit

wtp-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top