>
>
> > Why do you say that? Tern uses http server to communicate with tern
> > server (insead of readline like tsserver).
>
> The problem with pure HTTP is that you can not support pushes from the
> server to the client. You'd need at least use eg websockets to get that
> working.
>

Ok I understand what you mean! As long as Eclipse will not supprot async
completion (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=251156) the
 pushes from the
server to the client is not very interesting? Perhaps it's interesting for
validation? In the case of tern.java, we have async completion
https://github.com/angelozerr/tern.java/wiki/New-and-Noteworthy-0.9.0#async-tern-completion
when tern takes too time to avoid freezing Eclipse.

But I agree with you, I think WebSocket could be very good with tern with
some features like for refreshing Angular Explorer
https://github.com/angelozerr/angularjs-eclipse/wiki/Angular-Explorer-View
when new modules, etc are updated/modified.

>
> As I stated there are at least 2 methods in LanguageService who'll
> respond not immediately:
> * syntaxDiag
> * semanticDiag
>
> So the call to "geterr" returns no result (=void) but you get that
> asynchronously and I think you can not support that with plain HTTP.
>

Perhaps with WebSocket (Socket.io with node).

>
> Please note: I'm not against Tern but if you use LanguageService you
> need to keep the above in mind.
>

Sure Tom, I'm glad to discuss with you about this topic.If I have
understandood well, Tern is for JavaScript (it can guess type without
declaring it in the code) although LanguageService is for TypeScript.
I'm studying how to I could integrate TypeScript inside tern.java to
support Angular2.



> Tom
>
> --
> Thomas Schindl, CTO
> BestSolution.at EDV Systemhaus GmbH
> Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
> http://www.bestsolution.at/
> Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
> _______________________________________________
> wtp-dev mailing list
> wtp-dev@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/wtp-dev
>
_______________________________________________
wtp-dev mailing list
wtp-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to