#My TS server in VS code is too slow

9 messages · Page 1 of 1 (latest)

dawn owl
#

I've been working on a react project and the intellisense is slow most of the times. I've tried increasing the total alloted memory size to the server to 4GB. I also added node_modules in exclude list inside tsconfig.json But still the problem isn't solved. Can anyone help me with this

vapid dustBOT
#

:warning: Please wait a bit longer. You can ping helpers <t:1758733744:R>.

gilded field
#

A bit hard to say generically without information

#

(I would personally not do anything like replace type with interface - it's a theoretical difference in perf, but probably not a make-or-break difference for anything but the largest of projects)

#

Also worth considering if you have any particularly complicated-from-a-type-level libraries that might be creating a lot of work

dawn owl
#

Actually the project is not that big but the server was very slow. I added this in my settings.json

  "search.exclude": {
    "**/node_modules": true,
    "**/dist": true
  },
  "files.watcherExclude": {
    "**/node_modules/**": true,
    "**/dist/**": true
  }
``` and the performance has increase significantly
gilded field
#

Those aren't really related to TS itself, but yeah, other things using resources in your VSCode could probably affect it too

dawn owl