Community
Participate
Working Groups
The example should demonstrate a Handly-based model that can represent in a generic way any LSP-based source file. For information about LSP, see https://github.com/Microsoft/language-server-protocol.
Pushed to master: http://git.eclipse.org/c/handly/org.eclipse.handly.git/commit/?id=118e0a32a1ccc5d2487e485663c454eed85fc75f Implementation note: Currently, we use symbol location range to infer a hierarchy for a given flat list of symbols in a text document, just as Eclipse LSP4E does in its SymbolModel. However, according to a recent revision of the LSP specification "The range doesn't have to denote a node range in the sense of a abstract syntax tree. It can therefore not be used to re-construct a hierarchy of the symbols." It appears that, for the time being, there is no protocol defined way in LSP for building a tree of symbols [1]. Since the approach we currently use clearly violates the specification, it may or may not work, depending on a language server implementation. [1] https://github.com/Microsoft/language-server-protocol/issues/327
Additional work on the LSP example: http://git.eclipse.org/c/handly/org.eclipse.handly.git/commit/?id=19df8ef3539636a7c2d1e21ff1784a74df9652ed
More work on the LSP example: http://git.eclipse.org/c/handly/org.eclipse.handly.git/commit/?id=adeb6404506f45284baee8d8571a3cae9faa0800