Replies: 1 comment
-
If I understand you correctly, you are looking for auto-import suggestions. The functionality you're looking for is built into Pylance, which is Microsoft's premium Python language server. It is built on top of pyright. Pylance includes functionality that scans all of the files in your project and in your python environment. It indexes the symbols that can be imported and presents them as auto-import suggestions. Pyright has some basic language server features, but it is focused on type checking and type analysis. We don't plan to add any new language server features to pyright. Pylance is available in the VS Code marketplace at no cost. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using pyright as the code prompt of the code editor, but there are some packages in my side that are not maintained by python, but are internal packages of our company, so the corresponding tips cannot be displayed when entering the corresponding code. May I ask pyright how to customize these internal packages?
For example: when I type impo, I will be prompted to import, but when I type drag, I will not use dragon, because dragon is our internal package, and I also want to show some examples of the use of this package and some other information when the mouse is hovering over it
I used the lsp server and deployed the service using node.
Beta Was this translation helpful? Give feedback.
All reactions