Skip to content

Automatic imports don't work for packages that provide their own types #36042

Closed
@robbiespeed

Description

@robbiespeed
  • VSCode Version: 1.41.0
  • OS Version: Fedora 30

Steps to Reproduce:

  1. Add a module dependency which includes it's own types
  2. Start writing out a named export of the added module
  3. No suggestion will be given

Suggestions won't show until you've actually imported the dependency.
This is different from how @types modules work, which will show in suggestions without any prior use.

I've created an example project

  1. yarn install
  2. open src/main.ts
  3. type use and you will get suggestions for React useCallback, etc.
  4. type watch and you will get no suggestion for Kappi watch

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

Metadata

Metadata

Assignees

Labels

Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureDomain: Auto-importDomain: Completion ListsThe issue relates to showing completion lists in an editorSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions