You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Missing Import Quick Fix Should Be able to use File/Module Name for Default Exports #14663
Example one in a project with the absolute module installed, write:
absolute('/dir/file');
There is no quick fix for adding a import like: import absolute from 'absolute'
Example Two:
In a project that uses default exports:
// abc.tsexportdefault'abc'
// other.tsconsole.log(abc);
No quick fix is generate for importing abc from abc.ts. If the default exported symbol has a name, such as when using a class or function, then we can import it.
Activity
mhegazy commentedon Aug 17, 2017
We really need to put the symbol in the completion list first.
mjbvz commentedon Nov 9, 2017
Was this fixed by #19875?
amcasey commentedon Nov 9, 2017
/cc: Andy (Andrewkraft) (@Andy-MS)