Skip to content

High CPU usage (tsserver and typingsInstaller) #25629

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

Closed
robbiespeed opened this issue Jul 13, 2018 · 2 comments
Closed

High CPU usage (tsserver and typingsInstaller) #25629

robbiespeed opened this issue Jul 13, 2018 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@robbiespeed
Copy link

TypeScript Version: 2.9.2

  • VSCode Version: 1.25.0
  • OS: Fedora 28

Search Terms:
High cpu, files in excluded folder being watched

Steps to reproduce

Open vscode in an ember-cli project and run ember s to build and watch for changes. CPU usage of tsserver and typingsInstaller both jump up to 100% and remain there. typingsInstaller remains open even after vs code is closed, until the process is forcefully killed.

jsconfig.json:

{
  "compilerOptions": {
    "noEmit": true,
    "moduleResolution": "node",
    "lib": [
      "es2018"
    ],
    "target": "es2018",
    "baseUrl": ".",
    "paths": {
      "dugo-web/*": ["app/*"],
      "npm:dugo-lib": ["node_modules/dugo-lib"]
    }
  },
  "include": [
    "app"
  ],
  "exclude": [
    "public",
    "tests",
    "vendor",
    "node_modules",
    "tmp",
    "dist",
    ".git"
  ],
  "compileOnSave": false
}

tsserver.log
ti-19009.log
ti-18559.log
ti-18084.log

It's odd to me that although 'tmp' is excluded it is still being watched

Related Issues:
#23390
#18263

@mhegazy mhegazy added the Bug A bug in TypeScript label Jul 13, 2018
sheetalkamat added a commit that referenced this issue Jul 19, 2018
… so as to avoid watching excluded directories that are not part of config file

Fixes #25629 and microsoft/vscode#51139
@sheetalkamat
Copy link
Member

Hi can you try out drop from #25811 to see if you see improvement. Thank you.

sheetalkamat added a commit that referenced this issue Jul 20, 2018
… so as to avoid watching excluded directories that are not part of config file

Fixes #25629 and microsoft/vscode#51139
@robbiespeed
Copy link
Author

@sheetalkamat Thank you. I just had a chance to test it out, and it looks like the fix works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants