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

Move new imports down the code action list #3235

Merged
merged 5 commits into from
Oct 8, 2022

Conversation

kokobd
Copy link
Collaborator

@kokobd kokobd commented Sep 29, 2022

There are so many suggestions for new imports sometimes, but usually, I just want to extend the existing import if it is possible. I have to scroll down to the list to find it. I think it would be reasonable to change the order a bit.

@michaelpj
Copy link
Collaborator

If we think there's an obvious best suggestion here, we could also give some of them isPreferred?

@kokobd
Copy link
Collaborator Author

kokobd commented Sep 29, 2022

If we think there's an obvious best suggestion here, we could also give some of them isPreferred?

I think we are not 100% sure. Even if an already imported module exports a symbol with a desired name, it might not be what the user wants. And there might be multiple modules exporting symbols with the same name.

@kokobd kokobd closed this Sep 29, 2022
@kokobd kokobd deleted the kokobd/code-action-order branch September 29, 2022 16:27
@kokobd kokobd restored the kokobd/code-action-order branch September 29, 2022 16:28
@kokobd kokobd reopened this Sep 29, 2022
@pepeiborra pepeiborra enabled auto-merge (squash) October 8, 2022 04:20
@pepeiborra pepeiborra merged commit d8e1e75 into master Oct 8, 2022
@kokobd kokobd deleted the kokobd/code-action-order branch October 31, 2022 01: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.

3 participants