heroicons icon indicating copy to clipboard operation
heroicons copied to clipboard

vscode intellisense becoes super slow in remix.run

Open khanakia opened this issue 9 months ago • 4 comments

I am using remix.run and the IntelliSense becomes super slow the moment i install the heroicons packages

i have created a very basic test repo https://github.com/khanakia/testremix

yarn

NOTE: the moment I uninstall the "@heroicons/react": "^2.1.3" package vscode autocomplete becomes fast again

https://github.com/remix-run/remix/assets/2174170/aebd1147-cd49-4541-b8d4-24400e0f1041

khanakia avatar May 09 '24 15:05 khanakia

Hi. The same happened to me with an Adonis project with Inertia and React. As soon as I installed it, vscode intellisense became very slow.

jcdevfr avatar May 24 '24 10:05 jcdevfr

Looks like, possibly because there's a large number of icons that are individually importable (and each have their own .d.ts file) TypeScript's language server is stuck doing lots of work — including synchronous I/O:

Screenshot 2024-06-12 at 16 28 10

It's also doing duplicate work because we have multiple exports keys with different paths that point to the same source files — which we added for backwards compatibility.

thecrypticace avatar Jun 12 '24 20:06 thecrypticace

+1

asevims avatar Aug 01 '24 21:08 asevims

Same in a nextjs project. Tried zed as well and its super slow. Had to manually remove packages one by one to narrow it down to heroicons being the issue.

soulr344 avatar Aug 21 '24 11:08 soulr344