-
Notifications
You must be signed in to change notification settings - Fork 200
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
Pyright and :company-docsig #769
Comments
Not sure I fully understand the problem, but supporting things outside the spec is fine as long as they don't clash with things inside the spec or other existing behaviour. Was company |
* eglot.el (eglot-completion-at-point): show autoImportText via company-docsig.
The problem is that you don't really know if
Yep.
Right, I opened a PR for this. |
* eglot.el (eglot-completion-at-point): show autoImportText via company-docsig.
…e server * eglot.el (eglot-completion-at-point): show autoImportText via company-docsig.
…e server * eglot.el (eglot-completion-at-point): show autoImportText via company-docsig.
* eglot.el (eglot-completion-at-point): show autoImportText via company-docsig. #769: joaotavora/eglot#769
* eglot.el (eglot-completion-at-point): show autoImportText via company-docsig. GitHub-reference: fix joaotavora/eglot#769
* eglot.el (eglot-completion-at-point): show autoImportText via company-docsig. GitHub-reference: fix joaotavora/eglot#769
One cool feature of pyright is that it gives completions in other modules and automatically inserts the import when committing such completions. Here I complete
isinf
fromnumpy
(using corfu).Pyright is sending
:data (... :autoImportText "from numpy import isinf" ...)
, so I had to do the following to get the stuff shown in the echo area:Auto-import completions are not nearly as useful if you can't see where the symbol is coming from.
I understand that this is outside of the spec, but would it be possible to somehow support this?
The text was updated successfully, but these errors were encountered: