TypeScript: TSServer High CPU usage
- VSCode Version: 1.32.3
- OS Version: Fedora 29
Steps to Reproduce:
- Install clean stable VSCode with neo extensions or setting
- Open large project with sub projects
- Check System Monitor -> HIGH CPU Usage, almost non usable OS
I tried to turn off some settings, but nothing help. It caused by TSServer.js build-in “TypeScript and JavaScript Language Features” extension.
Solution: Disable “TypeScript and JavaScript Language Features” build-in extensions.
Does this issue occur when all extensions are disabled?: Yes
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 24
- Comments: 29 (7 by maintainers)
Have the same issue on MacOS Mojave. Using this as a workaround -
"javascript.validate.enable": false
@cushmatt can you please try typescript@next to see if the issue still repros… We made some changes to directory watching for Linux and it might have fixed the issue with the files being watched… If the issue still repros, please share new tsserver log with the latest build when the issue repros to be able to investigate this further
@kasik96 From your shared log it seems like file watcher being invoked too many times and is suppose to be a file not found… Enabling
--traceResolution
might give you why this file is being requested. It seems like that location is directory in the package and not file.@mjbvz Same problem, did not help.