tailwindlabs / heroicons

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

vscode intellisense becoes super slow in remix.run #1172

Open khanakia opened 1 month ago

khanakia commented 1 month 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

JeanCastellotti commented 1 month 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 2 weeks 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.