Skip to content

Prefer local auto-imports over those from external modules #61617

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No 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? No Sign in to your account

Open
shoooe opened this issue Apr 25, 2025 · 1 comment
Open

Prefer local auto-imports over those from external modules #61617

shoooe opened this issue Apr 25, 2025 · 1 comment
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status.

Comments

@shoooe
Copy link

shoooe commented Apr 25, 2025

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.99.3 (commit: 17baf841131aa23349f217ca7c570c76ee87b957)
  • OS Version: Darwin arm64 23.6.0

Steps to Reproduce:

  1. Have a file named ./components/anchor.tsx that exports a Anchor component
  2. Install lucide-react as well
  3. Write <Anchor /> in any file
  4. Click "Quick fix" icon
  5. Notice auto import prefers lucide-react over local Button

Seems to be a regression of a regression. Related issue here: microsoft/vscode#42104

Image

@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 25, 2025
@mjbvz mjbvz removed their assignment Apr 25, 2025
@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Apr 25, 2025
@RyanCavanaugh
Copy link
Member

Confirmed repro

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

4 participants