So if i copy and paste a component or any angular component into the constructor, hovering over it doesn’t suggest the import like it did before installing Codemix.
For instance (see image) if i paste ‘private fb: FormBuilder’ into the constructor then hover, it would suggest ‘import { FormBuilder } from ‘@angular/forms’;’ as an import and add it. With Codemix it doesn’t.
I can get around this by manually typing in ‘FormBuilder’ and it will add it. But then the ‘@Component({…’ declaration will stay with an error until i close the file and re-open it.
Maybe this is the new flow and i just need to adjust, but was a nice feature before.
I’m using webclipse with the plugin.
***EDIT
This also applies for any copy and pasted code where the components are already imported eg.
this.drawingForm = this.fb.group({
active: [‘true’, [Validators.required]],
title: [this.item.title, [Validators.required]],
description: [this.item.description, [Validators.required]]
});
I would have to Delete ‘Validators…’ and re-type it instead of hovering for the auto import
Thanks
Dale
-
This topic was modified 6 years, 2 months ago by Dale.
Attachments:
You must be
logged in to view attached files.