On 06.11.15 11:44, Angelo zerr wrote: > Thnaks To for sharing your work. > > 2015-11-05 22:05 GMT+01:00 Tom Schindl <tom.schi...@bestsolution.at > <mailto:tom.schi...@bestsolution.at>>: > > Hi, > > For communicating to LanguageService (or tsserver) I have pushed a > project to github who has a Java-API that allows to access the > LanguageService from Java [1]. > > Most of the Java code is generated from the DSL-File located at [2]. > > Please note that in contrast to Tern who IIRC works synchronously for > all calls > > > 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. 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. Please note: I'm not against Tern but if you use LanguageService you need to keep the above in mind. 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