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

Imports modules that are already imported (rxjs/<module> vs rxjs/Rx) #36

Open Methodician opened 7 years ago

Methodician commented 7 years ago

I keep having to remove duplicate imports. This is specifically with rxjs but I assume will happen with other libraries.

Here's an example:

I already have an import statement such as:

import { Observable } from 'rxjs/Rx';

Then I go try to use the "Observable" class and I get a new import statement like:

import { Observable } from 'rxjs/Observable';

At first it seemed like a minor price to pay for the power of this tool but as it kept happening I realized I should report it.

soates commented 7 years ago

Thanks for the feedback - I have been away from this project for a few weeks now but I am back and looking at as many issues as I can.

Thanks for using it :)