tailwindlabs / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.
https://heroicons.com
MIT License
21.72k stars 1.28k forks source link

vscode intellisense becoes super slow in remix.run #1172

Open khanakia opened 6 months ago

khanakia commented 6 months ago

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

gribbl commented 6 months ago

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.

thecrypticace commented 5 months ago

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.

asevims commented 4 months ago

+1

soulr344 commented 3 months ago

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.