sublimelsp / LSP-pyright

Python support for Sublime's LSP plugin provided through microsoft/pyright.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extra features available in coc.pyright

rchl opened this issue · comments

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.

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

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

ref: #317