soates / Auto-Import

vscode extension that will automatically finds, parses and provides code actions for all available imports. Only currently works with files in your folder and TypeScript.
MIT License
164 stars 62 forks source link

Look if the element is in some index file higher up the hierarchy #107

Open garyee opened 4 years ago

garyee commented 4 years ago

I use vscode for react and I have bundled all my frontend-components exports in an index file. so that I can just import {Button,Modal} from 'frontend';

if I use the extension it prints: import Button from '../../../frontend/graphics/Button'; which is longer and will not accumulate the imports.

It would be great if the former would be possible.