-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad experience when TypeScript server crashes #22614
Comments
I can confirm the behavior @OliverJAsh describes. Apparently, especially in quite big JavaScript projects the TypeScript server crashes quite frequently. |
Additionally, at least on the mac (including on the latest insider build), quitting vscode does not stop the tsserver process if it does crash. Two orphaned "Code Helper" processes are visible in the activity monitor. I have taken process samples of each, if they would help diagnose this, let me know. This likely relates to the issues reporting a code helper process running at 100% cpu that is not quit when quitting vscode on mac. The parent has this process name: |
I think I just experienced something similar to @jskrzypek. I was using VS Code 1.11.0 on macOS 10.12.4 and realized I was at 100% memory pressure when things started to get sluggish. Oddly Activity Monitor did not report that any process was using more than about 1 GB of RAM. I think the Code Helper process was at around 400 MB. Killing that process freed up about 14 GB of "wired" memory. |
6ec7423 adds a "TS server is initializing" indicator to the status bar. This will also show if the server crashes and is restarting We automatically restart the TS server if it crashes and alert the user if the server crashes multiple times rapidly. There's also a I believe this addresses the original points from this issue |
@mjbvz the status bar indicator and the command are definitely a big improvement. Almost all of the time when I notice the TS server has hung and I restart it, it comes back to life and resolves the issues I'm having. The fact that a significant percentage of the time it hangs again in the same project 20-30 minutes later mostly speaks to the fact that there are other underlying problems. At least now I have a way to recover from them without having to dig into the activity monitor 🎉 |
Quite often I find the TypeScript has crashed. VS Code gives me no indication of this—I have to look at the server output myself using the panel provided. Tooltips show as "Loading…" indefinitely.
Ideally:
Not sure why the server crashes, this time round I got this error (omitted stack trace):
The text was updated successfully, but these errors were encountered: