Skip to content

Settings to prefer local import over external import v2 #56676

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

Open
eddie-dunn opened this issue Dec 5, 2023 · 1 comment
Open

Settings to prefer local import over external import v2 #56676

eddie-dunn opened this issue Dec 5, 2023 · 1 comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Domain: Auto-import Suggestion An idea for TypeScript

Comments

@eddie-dunn
Copy link

eddie-dunn commented Dec 5, 2023

Ideally I would have just reopened microsoft/vscode#166924, but I'm restating it here:

image

The auto import in vscode right now seems to prefer the external module over my local one with the same name. i would like to have a settings where we can configure this behaviour

In response, @mjbvz asked

Is this only for quick fixes, or also for auto imports added by IntelliSense?

I can't speak for the original issue author, but from my point of view: Both, but if possible.

Otherwise I'll take what I can get. E.g., just being able to blacklist some imports from ever being suggested would be enough.

@mjbvz mjbvz transferred this issue from microsoft/vscode Dec 5, 2023
@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Domain: Auto-import labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Domain: Auto-import Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants