Skip to content

High CPU usage (tsserver and typingsInstaller) #25629

Closed
@robbiespeed

Description

@robbiespeed

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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions