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

(🎁) Support basedpyright #317

Closed
KotlinIsland opened this issue Mar 29, 2024 · 8 comments
Closed

(🎁) Support basedpyright #317

KotlinIsland opened this issue Mar 29, 2024 · 8 comments
Labels
enhancement New feature or request

Comments

@KotlinIsland
Copy link

Basedpyright is a Pyright fork with many improvements and new features

Link: https://github.com/DetachHead/basedpyright

I would be awesome if this project could support Basedpyright

@jfcherng
Copy link
Collaborator

jfcherng commented Mar 29, 2024

I already know this actually. It's a great awesome work. But if it gets supported, I think it should be LSP-basedpyright rather than in this repository.

LSP-basedpyright can be created with some minor modifications from LSP-pyright.

@jfcherng jfcherng added the enhancement New feature or request label Mar 29, 2024
@KotlinIsland
Copy link
Author

I think it should be LSP-basedpyright rather than in this repository.

Why is that?

@jfcherng
Copy link
Collaborator

jfcherng commented Mar 29, 2024

I think it should be LSP-basedpyright rather than in this repository.

Why is that?

  • The current implementation for all nodejs-based LSP-* just can't let the user to switch which one to install. We can install both and make the user to switch at runtime, but that makes thing unneccesary complicated imho.
    • E.g., all of your server settings replaces pyright. prefix to basedpyright.. It makes sense. But it makes thing complicated if we support both.
  • If we simply replace the underlying pyright with basedpyright but still naming it as LSP-pyright, that may cause confusion.

Make a new LSP-basedpyright is far more easier and clean.

@jfcherng
Copy link
Collaborator

@KotlinIsland Do you think pyright has ANY benefits when it compares to basedpyright? I think we should advertise LSP-basedpyright to LSP-pyright users when LSP-basedpyright comes out.

@KotlinIsland
Copy link
Author

Unless you consider pyright an "industry standard", then not at all. Additionally, the vision behind bpr is to keep any functionally as compliant as possible.

@jfcherng
Copy link
Collaborator

jfcherng commented Mar 29, 2024

Hi @rchl, @rwols

Here is a working LSP-basedpyright with basedpyright v1.8.0, which basically includes all Pyright features and some exclusive Pylance features such as semantic highlighting and inlay hints.

I forget what's the procedure to move it into LSP org.

@jfcherng
Copy link
Collaborator

Moved to https://github.com/sublimelsp/LSP-basedpyright.

@jfcherng
Copy link
Collaborator

jfcherng commented Mar 29, 2024

Closed as LSP-basedpyright has been merged into the LSP orgnization. It should appear on Package Control within hours: https://packagecontrol.io/packages/LSP-basedpyright

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants