-
Notifications
You must be signed in to change notification settings - Fork 768
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
Intellisense including from xxx import {haven't specified classes} #2533
Comments
fix will be in the next release. but, it won't be supported out of box since we only include first level symbols in auto import. you will need to use our hidden options to enable it. in settings.json, put this for us to pick the symbols up for auto import.
what it basically means is ["package name", "max depth to search"]. "max depth" basically means how many dot you need to access the module you want. ex) PySide6.QtWidgets deeper you go, Pylance will take more time to scan python files. if you put, ["", 2], it will change default depth not one particular library's search depth. thank you. |
This issue has been fixed in version 2022.4.0, which we've just released. You can find the changelog here: CHANGELOG.md |
Adding this to my settings.json, VSCode tells me "Unknown Configuration Setting" and shows the line in reduced colors. And it does not seem to work. |
Hi, |
I also updated my
This does seem to work for imports outside the workspace. However, imports inside the workspace still seem to be a problem. Has anyone encountered a similar behavior and/or found a solution for it? UPDATE: it looks like imports inside the workspace work briefly after saving the settings, then stop being suggested. Most likely a bug. |
Can report a similar issue - imports within the workspace aren't being auto-completed. I'm working in a development container with code in |
Similar if not the same issue, here. Trying to use Kivy and it's only suggesting imports from official Py libraries. |
For example:
from PySide6.QtWidgets import QApplication,
The Intellisense including
QPushButton
when I typeQP
, and after I selected it,QPushButton
will be imported automatically. the import will be changed to:from PySide6.QtWidgets import QApplication, QPushButton
.The text was updated successfully, but these errors were encountered: