-
Notifications
You must be signed in to change notification settings - Fork 767
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
Pylance intelligence can only take effect after qucik fix is used #3324
Comments
Hey @ydmykr, would you mind trying setting |
this is currently by design. currently, we do not add user types in auto import unless it is already used (doesn't need to be current file, but by some imports or other opened files). code action on the other hand, adds all user types. this was a decision to make sure we do not add hundreds of user types in completion list. so, even if you enable "indexing", the behavior you are describing won't change. we already experimented with putting all user types in completion, but that caused perf issue on completion especially with big project that has hundred thousands of user symbols. word matching wasn't enough. completion still had thousand of matched suggestion in there. we might be able to provide a hidden option to put all user types in completion for people who are okay with perf hit, but that should be done in discussion, not in issue. if you want that enhancement, please create new discussion item on discussion tab. |
Here is an example:
When I click quick fix, delete the content and re-enter it, I can get a prompt, otherwise it doesn't exist.
Is there any way I can get a prompt directly?
I tried to add the following in settings.json:
I also add the init.py in the folder. But they didn't work.
The text was updated successfully, but these errors were encountered: