-
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
Add heuristics for add imports quick fixes #5226
Comments
Curious to see what comes out of this. I often get half-a-dozen unrelated autoimport suggestions when working in typeshed |
related issue - https://github.com/microsoft/pyrx/issues/4321 |
@heejaechang I think it makes sense to tackle #5153 along with this (i.e. to remove the exact match setting). What do you think? |
Here is my preliminary plan for enhancing the
Goals:
|
sure, we probably will remove it once everything is done. but we probably will do a/b testing and feature rollout and etc? so, existing stuff will stay until we are done with all those? |
I really like the proposal, thanks for working on that! My one suggestion would be to not do |
so we don't even do fuzzy matching for misspelling? currently we have that since |
I was thinking we would in the "show more options" list, but not as top level code actions |
This issue has been fixed in prerelease version 2024.2.100, which we've just released. You can find the changelog here: CHANGELOG.md |
In order to enable this new enhancement, add the following to your settings.json:
|
Discussed offline with the broader team and we got to an agreement with only showing at most the top 3 high confidence add import options in the quick fix list, and then show an additional source action to "Search for an import match" that opens up the searchable quick pick menu with more import matches.
"High confidence" can be implemented as heuristics around:
The text was updated successfully, but these errors were encountered: