See mrmckeb/typescript-plugin-css-modules#215
npm i
npm run generate
(this will generate a lot of files insidesrc/components
folder, see thegenerate.mjs
script to tweak the number of files)restart TS server
(just to be sure)- open
src/App.tsx
and try to typeconsole.
. It will take a while for completions to show up- open TS server logs to see how long it takes to complete
- for me it takes
::completionInfo: elapsed time (in milliseconds)
around 8–10 seconds for each completion on1_000
files - Almost all the time is spent inside
Finishing updateGraphWorker: Project: …/tsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:
- try the same thing without the plugin.
console.
completion shows up instantly