Skip to content
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

bugfix: Make sure to choose the best import option #7285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Mar 7, 2025

When importing symbols in a range it might turn out we are able to get a better suggestions in a certain spot in the file.

For example if we know that one object has a specific method while the other doesn't.

This means that this import is better for the entire file since it's more concrete.

Previously, we would still show all options, but now search for the shortest action choice for each missing symbol.

@tgodzik tgodzik force-pushed the fix-import-all branch 2 times, most recently from 4e3b610 to 2699924 Compare March 7, 2025 23:23
When importing symbols in a range it might turn out we are able to get a better suggestions in a certain spot in the file.

For example if we know that one object has a specific method while the other doesn't.

This means that this import is better for the entire file since it's more concrete.

Previously, we would still show all options, but now search for the shortest action choice for each missing symbol.
@tgodzik tgodzik marked this pull request as ready for review March 9, 2025 22:21
@tgodzik tgodzik requested a review from kasiaMarek March 9, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant