TypeScript Version: 3.7.3
Search Terms: auto-import suggestions transitive dependencies
Description of the issue
Auto-import suggestions for transitive dependencies exported types don't show up anymore.
- In version 3.6.4 it works fine.
- If you delete
package.json the suggestions start showing-up - Tried in vscode and webstorm and the same behavior happens in both
Code
// package ZconstCrab="🦀";exportfunctionlogCrab(){console.log(Crab);}exportfunctionlogCrab2(){console.log(Crab);console.log(Crab);}// package Y (depends on Z)import{logCrab,logCrab2}from"demo-imports-issue-dep-dep";constPineapple="🍍";exportfunctionlogPineapple(){logCrab();console.log(Pineapple);}exportfunctionlogPineapple2(){logCrab2();console.log(Pineapple);console.log(Pineapple);}// package X (depends on Y)import{logPineapple}from"demo-imports-issue-dep";import{logCrab}from"demo-imports-issue-dep-dep";logPineapple();logCrab();// log <-- type this and hit the shortcut to have suggestionsExpected behavior:
v3.6.4 (notice logCrab2 is in the suggestions)

Actual behavior:
v3.7.3 with package.json (notice logCrab2 isn't in the suggestions):

v3.7.3 without package.json (notice logCrab2 is in the suggestions)

Playground Link:
Base project example: https://github.com/gdostie/demo-imports-issue
Project's direct dependency: https://github.com/gdostie/demo-imports-issue-dep
Project's transitive dependency (which exports the logCrab2 function): https://github.com/gdostie/demo-imports-issue-dep-dep
Related Issues:
TypeScript Version: 3.7.3
Search Terms: auto-import suggestions transitive dependencies
Description of the issue
Auto-import suggestions for transitive dependencies exported types don't show up anymore.
package.jsonthe suggestions start showing-upCode
Expected behavior:

v3.6.4 (notice
logCrab2is in the suggestions)Actual behavior:

v3.7.3 with package.json (notice
logCrab2isn't in the suggestions):v3.7.3 without package.json (notice

logCrab2is in the suggestions)Playground Link:
Base project example: https://github.com/gdostie/demo-imports-issue
Project's direct dependency: https://github.com/gdostie/demo-imports-issue-dep
Project's transitive dependency (which exports the
logCrab2function): https://github.com/gdostie/demo-imports-issue-dep-depRelated Issues: