You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open process explorer so you can see the CPU usage of tsserver
Do not open main.js (if you already have, close the tab & reload)
Run rm -rf node_modules && yarn
Wait for it to finish
Open main.js
tsserver cpu goes up to 50% for ~1 second. This is how it should be
Keep main.js open
Run rm -rf node_modules && yarn
Wait for it to finish
Expected behavior:
tsserver should not go mad
Actual behavior:
tsserver cpu goes up to 100% and stays like this for a long time. It varies, but I've had both 30 seconds and 15 minutes. It renders the entire intellisense and go-to mechanics useless. Reinstalling node_modules is one of the most common things to do in a JS/TS project. This bug makes developing Ember.js applications with vscode & typescript intellisense support effectively impossible. For example, in our team, we all had to go back to Sublime Text because of this. The CPU usage is probably related to some dependency in package.json, but I have not been able to narrow it down. Either way, it is a Typescript bug.
Related Issues:
There are multiple tsserver CPU related issues. This one was the most similar but is missing details and is also closed, so probably not related.
The text was updated successfully, but these errors were encountered:
TypeScript Version: [email protected]
Search Terms: tsserver cpu ember reload
Steps to reproduce
This is super-verbose; the relevant steps are bold and should be easy to reproduce
tsserver
main.js
(if you already have, close the tab & reload)rm -rf node_modules && yarn
main.js
tsserver
cpu goes up to 50% for ~1 second. This is how it should bemain.js
openrm -rf node_modules && yarn
Expected behavior:
tsserver
should not go madActual behavior:
tsserver
cpu goes up to 100% and stays like this for a long time. It varies, but I've had both 30 seconds and 15 minutes. It renders the entire intellisense and go-to mechanics useless. Reinstallingnode_modules
is one of the most common things to do in a JS/TS project. This bug makes developing Ember.js applications with vscode & typescript intellisense support effectively impossible. For example, in our team, we all had to go back to Sublime Text because of this. The CPU usage is probably related to some dependency in package.json, but I have not been able to narrow it down. Either way, it is a Typescript bug.Related Issues:
There are multiple tsserver CPU related issues. This one was the most similar but is missing details and is also closed, so probably not related.
The text was updated successfully, but these errors were encountered: