Skip to content

Show Notification when TS server reaches memory limit #243448

Description

@ShaMan123

I have experienced a performance degradation microsoft/TypeScript#61400 caused by TS.
I am not sure if it is a bug on their side or if I have actually reached the TS server memory limit.

Regardless, I would like to suggest that VSCode shows a notification that the process is about to reach the limit of allocated memory with a link to docs, to open an issue on TS etc.
Currently VSCode shows other notifications (because the process slows down) which led me to look for the issue in wrong places (e.g. "Organize Imports").
Problems that I've experienced:

  • Saving a file took 30-60s
  • Pasting took 30-60s or not completing
  • IntelliSense took 30-60s to show simple info of a var on hover, autocomplete the same

Increasing the memory resolved my issue.
.vscode/settings.json:

  "typescript.tsserver.maxTsServerMemory": 8192,
  "typescript.tsserver.nodePath": "node --max-old-space-size=8192",

Metadata

Metadata

Labels

*out-of-scopePosted issue is not in scope of VS CodetypescriptTypescript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions