cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Editor keeps adding "import { addIcons } from "ionicons"" to my angular class

Open amritashan opened this issue 1 year ago • 1 comments

I enabled Cursor Settings > Auto Import briefly to see if it helps in my angular project.

After that I noticed that it kept adding the ionicons import to a component I was working on.

import { addIcons } from "ionicons"

I don't use ionicons in my project, but I do use angular material mat-icon.

After sometime I noticed that it adds the import even when I am not working on the .ts file of the component directly. Even if I am working on the template html file of the component, it randomly added the import to the .ts file of the component when I saved the html file.

It kept hindering so much that I had to disable the auto-import feature from Cursor Settings.

However, the auto import of ionicons has still not stopped. It keeps adding the import to the .ts file even when I am working on the .html file.

Platform: Ubuntu 22.04.4 LTS (6.8.0-40-generic) Dell Inc. XPS 15 9570 Processor: Intel® Core™ i9-8950HK CPU @ 2.90GHz × 12

image

image

amritashan avatar Sep 06 '24 08:09 amritashan

Same here, it's so frustrating having to delete the import every time.

joelreyna avatar Sep 06 '24 15:09 joelreyna