Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode - TypeScript language service died unexpectedly 5 times in the last 5 minutes

This error message keeps sliding down from the top every few seconds. I click on the close button and it comes back again. I am not and don't plan on using TypeScript in any of my projects.

enter image description here

Is there a way to "silent" this warning message?
Is there a way to change the frequency that the warnings slide down on the screen?

This is happening in VSCode 1.8.1 and 1.9 on Windows 10 and Windows 8.

like image 570
Neil Hoff Avatar asked Feb 03 '17 14:02

Neil Hoff


3 Answers

I resolve my problem by use this way:

  1. first, open your typescript.tsserver.log to "verbose" enter image description here

  2. restart vscode, and open ts log enter image description here

  3. and you will find when make your tsserver so slow, as for me, jest_cache is the problem. so I add a exclude in my tsconfig.json
    enter image description here

  4. restart, and the problem solve.

like image 200
王镇佳 Avatar answered Oct 22 '22 12:10

王镇佳


I work on TypeScript for VSCode.

The TypeScript language service powers language features for both TypeScript and JavaScript code. Without it, you do not get any suggestions or intellisense or any other nice language support.

Please open an issue against VSCode if you are seeing this error. You can also try upgrading the version of TypeScript that VS Code uses to pick up the latest fixes and features: https://code.visualstudio.com/Docs/languages/typescript#_using-newer-typescript-versions

(I'm also looking into a better way to handle this message since it can be very spammy when the TypeScript service crashes continually)

like image 6
Matt Bierner Avatar answered Oct 22 '22 14:10

Matt Bierner


I the same problem with VSCode using a workspace Yarn and Typescript. After a couple months without a solution, I tried updating the Yarn VSCode SDK using yarn dlx @yarnpkg/sdks vscode as part of these instructions and that fixed my problem.

like image 4
KingTwinkie Avatar answered Oct 22 '22 14:10

KingTwinkie