Skip to content

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

Closed
@fabis94

Description

@fabis94

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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions