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

Why does auto-import work on my Angular project, but not on my Ionic one? #67

Open jgfet opened 7 years ago

jgfet commented 7 years ago

Why would auto-import work ok for the most part on an Angular project I have. Yet, when I started an Ionic project (which uses Angular/Typescript under the covers), auto-import doesn't seem to work at all. In VS Code when I go to Extensions > Auto Import > Contributions The settings in there seem to coincide with the readme.md. (btw: whether is the correct spelling not wether) If can see that this is where the configuration is done: ${HOME}/Library/Application Support/Code/User/settings.json So that's global for my user profile

"autoimport.filesToScan": "*/.{ts,tsx}", "autoimport.showNotifications": false, "autoimport.doubleQuotes": false, "autoimport.spaceBetweenBraces": true, "autoimport.autoComplete": true,

The Ionic project folder structure follows a similar src/app structure to an Angular project.

It would also be nice to have some options as to how the imports are added. eg: top, bottom, alphabetical. I for example would rather have bottom than top, so I can see it's been added without having to scroll all the way to the top of the page. I could show you via a Zoom or Skype session if you like