Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Library/Dependency information #666

Unanswered
dphaldes asked this question in Proposals
Apr 5, 2024 · 1 comments · 2 replies
Discussion options

This is a continuation of microsoft/language-server-protocol#472. The thread points out that this could/should be the responsibility of the BSP and not the language itself.
This feature is really useful and language/toolchain agnostic way of getting information of dependencies would be really useful. Things like Code Examples, Usage documentation and Implementation details help a lot when using libraries (it's commonly used in Java with embedded docs.)

You must be logged in to vote

Replies: 1 comment · 2 replies

Comment options

I think this is already done via https://build-server-protocol.github.io/docs/specification#buildtargetdependencymodules-request

It's mostly currently used for Maven dependencies, you can get jars, source jars or javadocs for each build target using that endpoint. Would that be enough for you? We have examples of it in bazel BSP, Bloop and from the client side in Metals language server.

You must be logged in to vote
2 replies
@dphaldes
Comment options

Does it fetch just the dependency names, or also their files and its locations ?

@tgodzik
Comment options

All of that: https://build-server-protocol.github.io/docs/extensions/maven#mavendependencymodule plus version and org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.