Skip to content

Auto import suggestions don't work (JS/CommonJS/Node.js project) #35592

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

Closed
fabis94 opened this issue Dec 9, 2019 · 2 comments
Closed

Auto import suggestions don't work (JS/CommonJS/Node.js project) #35592

fabis94 opened this issue Dec 9, 2019 · 2 comments
Assignees
Labels
Bug A bug in TypeScript

Comments

@fabis94
Copy link

fabis94 commented Dec 9, 2019

Auto Imports don't work in even a very basic JS Node.js project. I'm starting to wonder if auto imports even work in JS projects, because I feel like I've tried everything and nothing works.

  • VSCode Version: 1.40.2
  • OS Version: OSX Mojave 10.14.6

Steps to Reproduce:

Reproduction repo - https://github.com/fabis94/vscode-auto-import-broke-repro
b.js should offer to auto import aTestFunc() from a.js, and yet it doesn't.

Also check branch 'with-aliases' to see a more advanced scenario that also doesn't work - it uses module-alias to resolve modules using aliases.

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot assigned mjbvz Dec 9, 2019
@microsoft microsoft deleted a comment from vscodebot bot Dec 9, 2019
@mjbvz mjbvz transferred this issue from microsoft/vscode Dec 9, 2019
@mjbvz mjbvz changed the title Auto import doesn't work (JS/CommonJS/Node.js project) Auto import suggestions don't work (JS/CommonJS/Node.js project) Dec 9, 2019
@fabis94
Copy link
Author

fabis94 commented Jan 14, 2020

Any updates regarding this?

@RyanCavanaugh RyanCavanaugh assigned andrewbranch and unassigned mjbvz Jan 24, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.9.0 milestone Jan 24, 2020
@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Jan 24, 2020
@andrewbranch
Copy link
Member

This was fixed in #37027; I guess I forgot to link this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants