Skip to content

Is there a way to tell Pyright to dump LSIF data for an entire workspace? #2544

Answered by erictraut
vberlier asked this question in Q&A
Discussion options

You must be logged in to vote

As you mentioned, pyright is a language server, and it already provides hover text. It works with other language clients, so if you have an LSP-compatible language client, it should work.

We don't currently have any plans to add support for generating LSIF dumps, nor would we want to maintain such functionality as part of the pyright code base. That said, pyright is open-source, so you could fork it and use it as the basis for a tool that generates LSIF output. The closest thing that pyright offers is the ability to create type stubs from a code base. You could use the createTypeStubs.ts module as a template for how to do this.

It looks like there is at least one open-source project that …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vberlier
Comment options

@Strum355
Comment options

@vberlier
Comment options

Answer selected by vberlier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants