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

Extra features available in coc.pyright #249

Closed
rchl opened this issue May 21, 2023 · 2 comments
Closed

Extra features available in coc.pyright #249

rchl opened this issue May 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@rchl
Copy link
Member

rchl commented May 21, 2023

Just as a FYI in case it's not a common knowledge: coc.pyright implements a bunch of extra features on top of pyright, including semantic highlighting and inlay hints. Haven't tried it myself.

https://github.com/fannheyward/coc-pyright

After brief look I think we could (if someone has a a need, will and time) take some of that code and support those features here by building pyright ourselves with those features added as patches.

@jfcherng jfcherng added the enhancement New feature or request label May 22, 2023
@jfcherng
Copy link
Collaborator

jfcherng commented May 22, 2023

Or submit PRs to pyright 😂, though pretty sure they can, already, strip those codes from pylance but for some reasons they don't.

coc-pyright's implementation is currently bound to nvim. Making a custom pyright with patches will make it available to all editors.

That basically turns pyright into Pylance. Here are some noticed extra features provided by Pylance:

  • Capabilities:
  • Code Actions:
    • Extract Method
    • Extract Variable
    • Move Symbol
  • Source Actions:
    • Remove all unused imports in a file.
  • Stubs:
    • cv2
    • django
    • gym
    • jmespath
    • lightgbm
    • lxml
    • matplotlib
    • networkx
    • numpy
    • openpyxl
    • pandas
    • pythonwin
    • scipy
    • seaborn
    • sklearn
    • sqlalchemy
    • sympy
    • transformers
    • vispy
    • win32
    • win32comext

@jfcherng
Copy link
Collaborator

I think now DetachHead/basedpyright is prefered over coc's.

ref: #317

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