Skip to content

Poor tsserver performance, intellisense takes at least 10 seconds to appear and high CPU usage #1031

Description

@Suniron

My configuration:

  • Bun 1.2.0
  • Elysia 1.2.10
  • Platform is Linux 5.15.153.1-microsoft-standard-WSL2 x86_64 x86_64
  • Typescript of my project (nor vscode's) in 5.7.3

I have nearly 100 routes in my monorepo project (using Turborepo), freshly migrated from Node/express.

Since the migration, the developer experience is catastrophic, every intellisense suggestion/autocompletion takes more than 20 seconds: it's a nightmare 🥵.

I tried to put this config and explore the logs :

  "typescript.tsdk": "node_modules/typescript/lib",
  "typescript.tsserver.enableRegionDiagnostics": true,
  "typescript.tsserver.enableTracing": true,
  "typescript.tsserver.log": "normal"

As an example of the results, the slowness must be explained by the “semantic work”:

Image

In addition, CPU usage is very high when loading intellisense (consumed by tsserver.js from node_modules), .ex :

Image

I tried with the extensions disabled and without profile, as well as from another vscode (from the Insider version).

I assume this is a problem with type inference. I couldn't find best practices for performance in the documentation. I think this is a necessary part of the doc 💡.

Thanks in advance for your help in investigating my plight 🙏

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions