Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exclude specific exported identifiers from auto import suggestions #61605

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
6 tasks done
gkiely opened this issue Apr 22, 2025 · 1 comment
Open
6 tasks done

Exclude specific exported identifiers from auto import suggestions #61605

gkiely opened this issue Apr 22, 2025 · 1 comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@gkiely
Copy link

gkiely commented Apr 22, 2025

πŸ” Search Terms

Exclude named imports

βœ… Viability Checklist

⭐ Suggestion

There are libraries like @mui/material that have a number of named imports such, e.g. createTheme, useTheme, debounce, darken that can pollute intellisense.

While I don't want to exclude the entire @mui/material module, it would be great if I were able to exclude specific named imports so they do not show in the intellisense.

πŸ“ƒ Motivating Example

I have my own methods for useTheme and darken and wish to show my own methods in the intellisense and exclude those from @mui/material.

πŸ’» Use Cases

  1. What do you want to use this for?
    I want to be able to exclude specific named imports from modules

  2. What shortcomings exist with current approaches?
    It requires updates when modules change their named imports

  3. What workarounds are you using in the meantime?
    None

@MartinJohns
Copy link
Contributor

MartinJohns commented Apr 22, 2025

Duplicate of #35395. Nevermind, the request is for specific import identifiers, not files.

@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 labels Apr 22, 2025
@RyanCavanaugh RyanCavanaugh changed the title Exclude specific imports from auto import suggestions Exclude specific exported identifiers from auto import suggestions Apr 22, 2025
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 Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants