microsoft / microsoft/TypeScript
Prefer local auto-imports over those from external modules
@andrewbranch is already working on this.
Since Apr 25, 2025.
- 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

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.