Prefer Top Level Export For Missing Import Quick Fix #16959
Labels
Duplicate
An existing issue was already created
VS Code Tracked
There is a VS Code equivalent to this issue
From microsoft/vscode#30001
TypeScript Version: 2.4.1
Steps
In a new workspace:
npm install @angular/core
. Angular core ships with its ownd.ts
filesIn a JS file:
Fix Missing import
quick fix onComponent
Expected behavior:
A quick fix that adds an
@angular/core
import is shown.Actual behavior:
Quick fixes for importing from folders under
@angular/core
are shownIn this case, it appears that the implicit javascript project is loading all
d.ts
files from@angular/core
:Shouldn't this be limited to loading the
d.ts
from just thepackage.json
typings
and any files it references?The text was updated successfully, but these errors were encountered: