Skip to content

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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy