Shutting down idle LSPs

On large projects with many file types there could be substantial memory consumption as a result of labguage services.
For theia source code typescript starts:

  • tsserver1 - 341 MB
  • tsserver2 - 63 MB
  • typingsInstaller - 56 MB
    Other LSPs like eslint, html, json, etc. also consume resources.

Desktop vscode behave the same. However in cloud environment resources are more constly.

Has anyone tried or heard of a way to shut down these processes when they are not used?

Tried to take a look to understand how LS are started now, and if I understand correctly Theia now doesn’t spawn LS anymore. If I read correctly once again, the LS are started by vscode-languageclient so does that mean that such logic should be handled there?