|Using Handly in LSP-related project [message #1837144]
||Fri, 22 January 2021 16:47
| Vladimir Piskarev
Registered: January 2014
Some of you might have noticed that some time ago, the outdated "LSP Example" has been removed.
However, if you need an example of using Handly in LSP-related context, you can now take a look at the LXTK project (Language Client/Server Toolkit), which has been announced earlier today. LXTK Integration for Eclipse (LX4E) is integrated with Handly and, among other things, provides a means for building a handle-based model on top of facilities provided by the LSP (in particular, the 'documentSymbol' request).
If you are interested, the gory details are in the 'org.lxtk.lx4e.model' and 'org.lxtk.lx4e.model.impl' packages of the 'org.lxtk.lx4e' bundle. Also, there are 'org.lxtk.lx4e.examples.json' and 'org.lxtk.lx4e.examples.typescript' bundles, which demonstrate how this can be used in practice.
Note that it is recommended to use the current version of Handly (1.5) in LSP-related projects, since it contains some enhancements that might be useful in such context.
Powered by FUDForum
. Page generated in 0.01971 seconds