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
165 stars 62 forks source link

[bug] Autoimport not working on my Angular project #74

Open TD-Solutions opened 7 years ago

TD-Solutions commented 7 years ago

Since version 1.5.3, autoimport doesn't seem to be working all the time as it should in my angular project. Tried uninstall/reinstall, disable/enable. May be i am missing something ! :)

Example: typing following command:

export class UsernameValidators { cannotContainSpace(control: AbstractC***** }

should suggest then create: import { AbstractControl } from 'angular/forms';

but doesn't.

But it works correctly in app.Module.ts for imports like FormsModule. Thank you for your help !!

soates commented 7 years ago

Hm, I cant seem to recreate - can you do me a small sample app so I can recreate?

TD-Solutions commented 7 years ago

basic angular project.zip

Thank you for your quick answer... Just adding HttpModule in the imports section of app.module.ts should and used to trigger auto import, right? doesn't anymore, unless I am missing something quiet obvious, which is not entirely impossible... :)

Currently running auto import 1.5.3 in vs code.

Thank you!

zapotocnylubos commented 6 years ago

I have same situation, fresh new project, trying add HttpModule and nothing. vs code 1.21.1 auto import 1.5.3 installed extensions: Auto Import, TSLint

Thanks.