Skip to content

feat(language-service): Allow auto-imports to suggest multiple possible imports. #47787

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

Closed
wants to merge 1 commit into from

Conversation

dylhunn
Copy link
Contributor

@dylhunn dylhunn commented Oct 17, 2022

This change allows the language service to suggest imports for all directives returned from the compiler, and for all import specifiers for each directive. The first change has immediate effect, since there could already be multiple directives with the same selector. The second change is future-proofing; the compiler currently only returns a single best specifier, but will return more in the future.

multi-suggestion

@dylhunn dylhunn added state: WIP area: language-service Issues related to Angular's VS Code language service labels Oct 17, 2022
@ngbot ngbot bot added this to the Backlog milestone Oct 17, 2022
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Oct 17, 2022
@dylhunn dylhunn added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Oct 17, 2022
@dylhunn dylhunn marked this pull request as ready for review October 17, 2022 13:03
@pullapprove pullapprove bot requested a review from alxhub October 17, 2022 13:04
@dylhunn dylhunn removed the request for review from alxhub October 21, 2022 16:23
@dylhunn dylhunn removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 21, 2022
…le imports.

This change allows the language service to suggest imports for *all* directives returned from the compiler, and for *all* import specifiers for each directive. The first change has immediate effect, since there could already be multiple directives with the same selector. The second change is future-proofing; the compiler currently only returns a single best specifier, but will return more in the future.
@dylhunn dylhunn added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Oct 21, 2022
@pkozlowski-opensource
Copy link
Member

This PR was merged into the repository by commit 5f0b53c.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 21, 2022
@dylhunn dylhunn deleted the auto-imports branch November 30, 2022 20:12
trekladyone pushed a commit to trekladyone/angular that referenced this pull request Feb 1, 2023
…le imports. (angular#47787)

This change allows the language service to suggest imports for *all* directives returned from the compiler, and for *all* import specifiers for each directive. The first change has immediate effect, since there could already be multiple directives with the same selector. The second change is future-proofing; the compiler currently only returns a single best specifier, but will return more in the future.

PR Close angular#47787
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: language-service Issues related to Angular's VS Code language service detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants