microsoft / microsoft/TypeScript

Prefer local auto-imports over those from external modules

Open
#61,617 1 comment 0 reactions 1 assignee Claimed by @andrewbranch View on GitHub
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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.