Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement LSIF support #3098

Closed
kjeremy opened this issue Feb 10, 2020 · 3 comments
Closed

Implement LSIF support #3098

kjeremy opened this issue Feb 10, 2020 · 3 comments

Comments

@kjeremy
Copy link
Contributor

kjeremy commented Feb 10, 2020

The LSIF 0.4 spec is now available at https://microsoft.github.io/language-server-protocol/specifications/lsif/0.4.0/specification/

@zoidyzoidzoid
Copy link

I tried to have a look of where I'd need to get started on this, but I'd love to help, though I'm not familiar with this code base yet.

@namibj
Copy link

namibj commented May 25, 2020

This should allow proper cross-repo references for public github code (it seems to maybe require opt-in by generating LSIF data and someone with collaborator access uploading it) on sourcegraph.

I'd not be surprised if they'd at least sponsor generating the LSIF data for the most popular crates, or even more than only those.

@matklad
Copy link
Member

matklad commented Jul 15, 2020

Hm, I'd say this is explicitly out of scope for the time being, we should do this eventually, but it's not useful to keep the issue open.

@matklad matklad closed this as completed Jul 15, 2020
This was referenced Sep 6, 2021
bors bot added a commit that referenced this issue Sep 29, 2021
10181: Begining of lsif r=HKalbasi a=HKalbasi

This PR adds a `lsif` command to cli, which can be used as `rust-analyzer lsif /path/to/project > dump.lsif`. It now generates a valid, but pretty useless lsif (only supports folding ranges). The propose of this PR is to discussing about the structure of lsif generator, before starting anything serious.

cc `@matklad` #8696 #3098


Co-authored-by: hamidreza kalbasi <hamidrezakalbasi@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants