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

Adding intellisense support for node import mapping and subpath imports #128064

Closed
MaxTechnics opened this issue Jul 6, 2021 · 1 comment
Closed
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@MaxTechnics
Copy link

A feature in node 14 is you can define imports in your package.json and alias your relative paths in your package.json. It would be great if intellisense resolves these so using them would be even better.

An example of package.json imports:

{
  "name": "",
  "version": "1",
  "description": "",
  "main": "index.js",
  "scripts": {},
  "keywords": [],
  "author": "",
  "license": "",
  "dependencies": {},
  "devDependencies": {},
  "imports": {
    "#utils/*": "./utils/*",
    "#colors": "./commanddata/colors.json"
  }
}

You would be able to use these in your requires. (require('#utils/myUtil.js');)

@mjbvz
Copy link
Collaborator

mjbvz commented Jul 6, 2021

This feature is powered by the TypeScript project. Please file a feature request upstream

@mjbvz mjbvz closed this as completed Jul 6, 2021
@mjbvz mjbvz added javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Jul 6, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants