ts-importer
ts-importer copied to clipboard
Importing Angular components adds extra line
When I am at the top of a .ts file where all the imports are and I want to import a new component manually, for example AppComponent
, I type "import App" and when the suggestion for AppComponent
pops up, I hit enter on my keyboard. The result is two lines:
import { AppComponent } from './app.component';
import AppComponent
it should be only the first line:
import { AppComponent } from './app.component';
I too would like it if this were fixed. In the meantime, I am trying to get used to not typing the import at all. Just typing the component name where I actually need it and let the extension import it for me. Which is probably the intended behavior.
This is a bit hard to fix, because the usual auto complete feature is applied.
I will take a look into it, how to detect this state.