microsoft / microsoft/TypeScript

Prefer local auto-imports over those from external modules

Open
#61,617 1 comment 0 reactions 1 assignee View on GitHub

@andrewbranch is already working on this.

Since Apr 25, 2025.

Needs Investigation
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

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 `` 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: https://github.com/microsoft/vscode/issues/42104

![Image](https://github.com/user-attachments/assets/35353261-e813-4a65-a73c-01fea9e96ea5)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.