CoatiSoftware / SourcetrailDB

Library to export Sourcetrail compatible database files for writing custom indexers
Apache License 2.0
287 stars 65 forks source link

Use Language Server Protocol to create bindings for any language #20

Open yozlet opened 4 years ago

yozlet commented 4 years ago

Language Server Protocol provides calls for many (possibly all) of the language analysis that Sourcetrail needs. There are now open source langservers for many different languages - sometimes multiple implementations for a single language.

It's possible that configuring Sourcetrail to use an existing language server could reduce the work of supporting a language down to a simple config file.

EDIT: If you're interested in general discussion about LSP and/or LSIF support in Sourcetrail (which would make this issue redundant), that's happening here: https://github.com/CoatiSoftware/Sourcetrail/issues/685 . This issue is about implementing that support as an external framework usable by bindings.

LouisStAmour commented 4 years ago

See also: https://github.com/CoatiSoftware/Sourcetrail/issues/685

yozlet commented 4 years ago

@LouisStAmour Thank you! It looks like that's the better issue to host the general LSP & LSIF discussion. I think I should keep this one open since it's about using LSP at the binding level rather than the Sourcetrail level, so anyone could implement it in their own binding, but I'll change the description accordingly.