Skip to content
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

auto import build-in node module with protocol prefix #55051

Open
danielwerg opened this issue Jul 16, 2023 · 0 comments
Open

auto import build-in node module with protocol prefix #55051

danielwerg opened this issue Jul 16, 2023 · 0 comments
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

@danielwerg
Copy link

danielwerg commented Jul 16, 2023

Currently vscode will auto import build-in node module without node: prefix unless there is already another import with prefix.

Example:

No imports or one or more imports without node: prefix:

2023-07-16_05-58-56

One or more import with node: prefix:

2023-07-16_05-59-14

I would like to have a setting to force node: prefix.

Related:

eslint-community/eslint-plugin-n#77
import-js/eslint-plugin-import#2717

Workarounds:

@mjbvz mjbvz transferred this issue from microsoft/vscode Jul 17, 2023
@mjbvz mjbvz removed their assignment Jul 17, 2023
@mjbvz mjbvz reopened this Jul 19, 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 Jul 25, 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

3 participants