Skip to content
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

BUG : jsconfig.json file in $HOME crash computer #14636

Closed
mjbvz opened this issue Mar 13, 2017 · 9 comments
Closed

BUG : jsconfig.json file in $HOME crash computer #14636

mjbvz opened this issue Mar 13, 2017 · 9 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue VS Code Tracked There is a VS Code equivalent to this issue

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Mar 13, 2017

From @DavidBabel on March 13, 2017 10:1

  • VSCode Version: 1.10.2
  • OS Version:

Steps to Reproduce:
linked to #22372

  1. Close vscode
  2. create jsconfig.json file in your $HOME directory with content :
{
    "compilerOptions": {
        "lib": [
            "es2015"
        ]
    }
}
  1. launch any project of vscode and check your processor activity :
    image

You will got huge performances problems identified, intellisense will completely crash in "loading ..." state, and the whole computer will slow down.

Processes stay as ghost even if vscode is closed.

Copied from original issue: microsoft/vscode#22515

@mjbvz mjbvz self-assigned this Mar 13, 2017
@mjbvz mjbvz removed their assignment Mar 13, 2017
@mjbvz mjbvz added the VS Code Tracked There is a VS Code equivalent to this issue label Mar 13, 2017
@mjbvz
Copy link
Contributor Author

mjbvz commented Mar 13, 2017

This seems to be one of the causes of the high CPU usage bug's we've seen. Here's the TSServer log:

Info 0    Binding...
Info 1    request: {"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode"}}
Info 2    Host information vscode
Info 3    response: {"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 4    0::configure: async elapsed time (in milliseconds) 2.0247
Info 5    request: {"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"CommonJS","target":"ES6","allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"allowJs":true,"jsx":"Preserve"}}}
Perf 6    1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 1.2805
Info 7    response: {"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 8    request: {"seq":2,"type":"request","command":"getSupportedCodeFixes","arguments":null}
Perf 9    2::getSupportedCodeFixes: elapsed time (in milliseconds) 0.5533
Info 10   response: {"seq":0,"type":"response","command":"getSupportedCodeFixes","request_seq":2,"success":true,"body":["2304","2339","2377","2420","2503","2515","2653","2663","2686","2689","6133","6138","17009"]}
Info 11   request: {"seq":3,"type":"request","command":"getSupportedCodeFixes","arguments":null}
Perf 12   3::getSupportedCodeFixes: elapsed time (in milliseconds) 0.2386
Info 13   response: {"seq":0,"type":"response","command":"getSupportedCodeFixes","request_seq":3,"success":true,"body":["2304","2339","2377","2420","2503","2515","2653","2663","2686","2689","6133","6138","17009"]}
Info 14   request: {"seq":4,"type":"request","command":"open","arguments":{"file":"untitled:Untitled-1","fileContent":"var a = 10;","scriptKindName":"JS"}}
Info 15   Search path: 
Info 16   Config file name: jsconfig.json
Info 17   event: {"seq":0,"type":"event","event":"projectLanguageServiceState","body":{"projectName":"jsconfig.json","languageServiceEnabled":false}}
Info 18   No plugins exist

Eventually it the TSServer disables the language service. Then a little while later it crashes and restarts. Here's one of the typings install logs that is triggered:

Global cache location '/Users/matb/Library/Caches/typescript', safe file path '/users/matb/projects/vscode/extensions/node_modules/typescript/lib/typingsafelist.json'
Processing cache location '/Users/matb/Library/Caches/typescript'
Trying to find '/Users/matb/Library/Caches/typescript/package.json'...
Loaded content of '/Users/matb/Library/Caches/typescript/package.json': {"devDependencies":{"@types/acorn":"^4.0.0","@types/alt":"^0.16.32","@types/ansi-styles":"^2.0.30","@types/applicationinsights":"^0.15.33","@types/argparse":"^1.0.30","@types/array-uniq":"^1.0.0","@types/assert-plus":"^1.0.2","@types/async":"^2.0.38","@types/aws-sdk":"0.0.42","@types/aws4":"^1.5.1","@types/benchmark":"^1.0.30","@types/bl":"^0.8.30","@types/bluebird":"^3.0.37","@types/boom":"0.0.33","@types/browserify":"^12.0.30","@types/buffer-equal":"0.0.30","@types/chai":"^3.4.35","@types/chalk":"^0.4.31","@types/chokidar":"^1.4.31","@types/clean-css":"^3.4.30","@types/clone":"^0.1.30","@types/code":"^4.0.1","@types/color":"^1.0.0","@types/colors":"^1.1.1","@types/combined-stream":"^1.0.0","@types/commander":"^2.3.31","@types/concat-stream":"^1.6.0","@types/core-js":"^0.9.35","@types/csv-parse":"^1.1.6","@types/dateformat":"^1.0.1","@types/debounce":"0.0.30","@types/debug":"0.0.29","@types/deep-extend":"^0.4.30","@types/diff":"0.0.31","@types/documentdb":"0.0.35","@types/duplexer2":"^0.1.0","@types/electron":"^1.4.33","@types/es6-weak-map":"^1.2.0","@types/escape-string-regexp":"0.0.30","@types/esprima":"^2.1.33","@types/event-stream":"^3.3.30","@types/exit":"^0.1.30","@types/expect.js":"^0.3.29","@types/express":"^4.0.35","@types/extend":"^2.0.30","@types/form-data":"0.0.33","@types/fs-extra":"0.0.37","@types/glob":"^5.0.30","@types/gm":"^1.17.29","@types/graceful-fs":"^2.0.29","@types/grunt":"^0.4.21","@types/gulp":"^3.8.32","@types/gulp-concat":"0.0.29","@types/gulp-filter":"^3.0.29","@types/gulp-istanbul":"^0.9.30","@types/gulp-json-editor":"^2.2.29","@types/gulp-mocha":"0.0.29","@types/gulp-rename":"0.0.31","@types/gulp-replace":"0.0.29","@types/gulp-shell":"0.0.29","@types/gulp-sourcemaps":"0.0.29","@types/gulp-tslint":"^3.6.30","@types/gulp-typedoc":"0.0.29","@types/gulp-uglify":"0.0.29","@types/gulp-util":"^3.0.30","@types/gulp-watch":"^4.1.29","@types/hammerjs":"^2.0.34","@types/handlebars":"^4.0.31","@types/hapi":"^16.0.0","@types/highlight.js":"^9.1.9","@types/hoek":"^4.1.1","@types/hooker":"^0.2.28","@types/iconv-lite":"0.0.1","@types/inherits":"0.0.29","@types/ini":"^1.3.29","@types/inquirer":"0.0.32","@types/is":"0.0.17","@types/is-binary-path":"^2.0.0","@types/is-my-json-valid":"0.0.19","@types/istanbul":"^0.4.29","@types/jade":"0.0.30","@types/jest":"^18.1.1","@types/js-beautify":"0.0.28","@types/js-yaml":"^3.5.29","@types/jsbn":"^1.2.28","@types/karma":"^0.13.33","@types/karma-coverage":"^0.5.30","@types/karma-jasmine":"0.0.29","@types/lab":"^11.1.0","@types/lazy.js":"^0.3.28","@types/lodash":"^4.14.54","@types/lodash.escape":"^4.0.1","@types/lodash.isarguments":"^3.1.1","@types/lodash.isarray":"^4.0.1","@types/lodash.keys":"^4.2.1","@types/lodash.template":"^4.4.1","@types/markdown-it":"0.0.2","@types/marked":"0.0.28","@types/micromatch":"^2.3.29","@types/mime":"0.0.29","@types/minimatch":"^2.0.29","@types/minimist":"^1.2.0","@types/mkdirp":"^0.3.29","@types/mocha":"^2.2.39","@types/mock-fs":"^3.6.30","@types/ms":"^0.7.29","@types/node":"^7.0.5","@types/nodeunit":"0.0.30","@types/nopt":"^3.0.29","@types/number-is-nan":"^1.0.0","@types/object-assign":"^4.0.30","@types/once":"^1.3.28","@types/optimist":"0.0.29","@types/parse-glob":"^3.0.29","@types/parse5":"^2.2.34","@types/path-is-absolute":"^1.0.0","@types/pify":"0.0.28","@types/prettyjson":"0.0.28","@types/progress":"^1.1.28","@types/proxyquire":"^1.3.27","@types/pump":"^1.0.0","@types/qs":"^6.2.30","@types/raw-body":"^2.1.3","@types/rc":"0.0.1","@types/react":"^15.0.14","@types/react-native":"^0.42.0","@types/react-native-fs":"^2.0.2","@types/react-router":"^3.0.6","@types/react-test-renderer":"^15.4.2","@types/replace-ext":"0.0.27","@types/request":"0.0.40","@types/requirejs":"^2.1.28","@types/resolve":"0.0.4","@types/resolve-from":"0.0.18","@types/rimraf":"0.0.28","@types/run-sequence":"0.0.28","@types/sax":"^1.0.0","@types/semver":"^5.3.30","@types/shelljs":"^0.7.0","@types/should":"^8.1.30","@types/sinon":"^1.16.35","@types/sinon-chai":"^2.7.27","@types/source-map":"^0.5.0","@types/source-map-support":"^0.2.28","@types/sshpk":"^1.10.2","@types/stream-to-array":"0.0.28","@types/string":"0.0.28","@types/strip-ansi":"^3.0.0","@types/strip-bom":"^3.0.0","@types/strip-json-comments":"0.0.28","@types/supports-color":"^3.1.0","@types/swig":"0.0.28","@types/table":"^4.0.1","@types/tape":"^4.2.29","@types/tar":"^1.0.29","@types/temp":"^0.8.29","@types/through":"0.0.28","@types/through2":"^2.0.32","@types/tmp":"0.0.32","@types/uglify-js":"^2.6.28","@types/underscore":"^1.7.36","@types/underscore.string":"0.0.30","@types/uuid":"^2.0.29","@types/v8-profiler":"0.0.5","@types/verror":"^1.9.2","@types/vinyl":"^2.0.0","@types/vinyl-fs":"^2.4.1","@types/winreg":"^1.2.30","@types/xmlbuilder":"0.0.29","@types/xtend":"^4.0.2","@types/xterm":"^2.0.2","@types/yargs":"^6.6.0","@types/zone.js":"0.0.27"}}
Adding entry into typings cache: 'acorn' => '/Users/matb/Library/Caches/typescript/node_modules/@types/acorn/index.d.ts'
Adding entry into typings cache: 'alt' => '/Users/matb/Library/Caches/typescript/node_modules/@types/alt/index.d.ts'
Adding entry into typings cache: 'ansi-styles' => '/Users/matb/Library/Caches/typescript/node_modules/@types/ansi-styles/index.d.ts'
Adding entry into typings cache: 'applicationinsights' => '/Users/matb/Library/Caches/typescript/node_modules/@types/applicationinsights/index.d.ts'
Adding entry into typings cache: 'argparse' => '/Users/matb/Library/Caches/typescript/node_modules/@types/argparse/index.d.ts'
Adding entry into typings cache: 'array-uniq' => '/Users/matb/Library/Caches/typescript/node_modules/@types/array-uniq/index.d.ts'
Adding entry into typings cache: 'assert-plus' => '/Users/matb/Library/Caches/typescript/node_modules/@types/assert-plus/index.d.ts'
Adding entry into typings cache: 'async' => '/Users/matb/Library/Caches/typescript/node_modules/@types/async/index.d.ts'
Adding entry into typings cache: 'aws-sdk' => '/Users/matb/Library/Caches/typescript/node_modules/@types/aws-sdk/index.d.ts'
Adding entry into typings cache: 'aws4' => '/Users/matb/Library/Caches/typescript/node_modules/@types/aws4/index.d.ts'
Adding entry into typings cache: 'benchmark' => '/Users/matb/Library/Caches/typescript/node_modules/@types/benchmark/index.d.ts'
Adding entry into typings cache: 'bl' => '/Users/matb/Library/Caches/typescript/node_modules/@types/bl/index.d.ts'
Adding entry into typings cache: 'bluebird' => '/Users/matb/Library/Caches/typescript/node_modules/@types/bluebird/index.d.ts'
Adding entry into typings cache: 'boom' => '/Users/matb/Library/Caches/typescript/node_modules/@types/boom/index.d.ts'
Adding entry into typings cache: 'browserify' => '/Users/matb/Library/Caches/typescript/node_modules/@types/browserify/index.d.ts'
Adding entry into typings cache: 'buffer-equal' => '/Users/matb/Library/Caches/typescript/node_modules/@types/buffer-equal/index.d.ts'
Adding entry into typings cache: 'chai' => '/Users/matb/Library/Caches/typescript/node_modules/@types/chai/index.d.ts'
Adding entry into typings cache: 'chalk' => '/Users/matb/Library/Caches/typescript/node_modules/@types/chalk/index.d.ts'
Adding entry into typings cache: 'chokidar' => '/Users/matb/Library/Caches/typescript/node_modules/@types/chokidar/index.d.ts'
Adding entry into typings cache: 'clean-css' => '/Users/matb/Library/Caches/typescript/node_modules/@types/clean-css/index.d.ts'
Adding entry into typings cache: 'clone' => '/Users/matb/Library/Caches/typescript/node_modules/@types/clone/index.d.ts'
Adding entry into typings cache: 'code' => '/Users/matb/Library/Caches/typescript/node_modules/@types/code/index.d.ts'
Adding entry into typings cache: 'color' => '/Users/matb/Library/Caches/typescript/node_modules/@types/color/index.d.ts'
Adding entry into typings cache: 'colors' => '/Users/matb/Library/Caches/typescript/node_modules/@types/colors/index.d.ts'
Adding entry into typings cache: 'combined-stream' => '/Users/matb/Library/Caches/typescript/node_modules/@types/combined-stream/index.d.ts'
Adding entry into typings cache: 'commander' => '/Users/matb/Library/Caches/typescript/node_modules/@types/commander/index.d.ts'
Adding entry into typings cache: 'concat-stream' => '/Users/matb/Library/Caches/typescript/node_modules/@types/concat-stream/index.d.ts'
Adding entry into typings cache: 'core-js' => '/Users/matb/Library/Caches/typescript/node_modules/@types/core-js/index.d.ts'
Adding entry into typings cache: 'csv-parse' => '/Users/matb/Library/Caches/typescript/node_modules/@types/csv-parse/index.d.ts'
Adding entry into typings cache: 'dateformat' => '/Users/matb/Library/Caches/typescript/node_modules/@types/dateformat/index.d.ts'
Adding entry into typings cache: 'debounce' => '/Users/matb/Library/Caches/typescript/node_modules/@types/debounce/index.d.ts'
Adding entry into typings cache: 'debug' => '/Users/matb/Library/Caches/typescript/node_modules/@types/debug/index.d.ts'
Adding entry into typings cache: 'deep-extend' => '/Users/matb/Library/Caches/typescript/node_modules/@types/deep-extend/index.d.ts'
Adding entry into typings cache: 'diff' => '/Users/matb/Library/Caches/typescript/node_modules/@types/diff/index.d.ts'
Adding entry into typings cache: 'documentdb' => '/Users/matb/Library/Caches/typescript/node_modules/@types/documentdb/index.d.ts'
Adding entry into typings cache: 'duplexer2' => '/Users/matb/Library/Caches/typescript/node_modules/@types/duplexer2/index.d.ts'
Adding entry into typings cache: 'electron' => '/Users/matb/Library/Caches/typescript/node_modules/@types/electron/index.d.ts'
Adding entry into typings cache: 'es6-weak-map' => '/Users/matb/Library/Caches/typescript/node_modules/@types/es6-weak-map/index.d.ts'
Adding entry into typings cache: 'escape-string-regexp' => '/Users/matb/Library/Caches/typescript/node_modules/@types/escape-string-regexp/index.d.ts'
Adding entry into typings cache: 'esprima' => '/Users/matb/Library/Caches/typescript/node_modules/@types/esprima/index.d.ts'
Adding entry into typings cache: 'event-stream' => '/Users/matb/Library/Caches/typescript/node_modules/@types/event-stream/index.d.ts'
Adding entry into typings cache: 'exit' => '/Users/matb/Library/Caches/typescript/node_modules/@types/exit/index.d.ts'
Adding entry into typings cache: 'expect.js' => '/Users/matb/Library/Caches/typescript/node_modules/@types/expect.js/index.d.ts'
Adding entry into typings cache: 'express' => '/Users/matb/Library/Caches/typescript/node_modules/@types/express/index.d.ts'
Adding entry into typings cache: 'extend' => '/Users/matb/Library/Caches/typescript/node_modules/@types/extend/index.d.ts'
Adding entry into typings cache: 'form-data' => '/Users/matb/Library/Caches/typescript/node_modules/@types/form-data/index.d.ts'
Adding entry into typings cache: 'fs-extra' => '/Users/matb/Library/Caches/typescript/node_modules/@types/fs-extra/index.d.ts'
Adding entry into typings cache: 'glob' => '/Users/matb/Library/Caches/typescript/node_modules/@types/glob/index.d.ts'
Adding entry into typings cache: 'gm' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gm/index.d.ts'
Adding entry into typings cache: 'graceful-fs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/graceful-fs/index.d.ts'
Adding entry into typings cache: 'grunt' => '/Users/matb/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts'
Adding entry into typings cache: 'gulp' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts'
Adding entry into typings cache: 'gulp-concat' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-concat/index.d.ts'
Adding entry into typings cache: 'gulp-filter' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-filter/index.d.ts'
Adding entry into typings cache: 'gulp-istanbul' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-istanbul/index.d.ts'
Adding entry into typings cache: 'gulp-json-editor' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-json-editor/index.d.ts'
Adding entry into typings cache: 'gulp-mocha' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-mocha/index.d.ts'
Adding entry into typings cache: 'gulp-rename' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-rename/index.d.ts'
Adding entry into typings cache: 'gulp-replace' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-replace/index.d.ts'
Adding entry into typings cache: 'gulp-shell' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-shell/index.d.ts'
Adding entry into typings cache: 'gulp-sourcemaps' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-sourcemaps/index.d.ts'
Adding entry into typings cache: 'gulp-tslint' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-tslint/index.d.ts'
Adding entry into typings cache: 'gulp-typedoc' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-typedoc/index.d.ts'
Adding entry into typings cache: 'gulp-uglify' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-uglify/index.d.ts'
Adding entry into typings cache: 'gulp-util' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-util/index.d.ts'
Adding entry into typings cache: 'gulp-watch' => '/Users/matb/Library/Caches/typescript/node_modules/@types/gulp-watch/index.d.ts'
Adding entry into typings cache: 'hammerjs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/hammerjs/index.d.ts'
Adding entry into typings cache: 'handlebars' => '/Users/matb/Library/Caches/typescript/node_modules/@types/handlebars/index.d.ts'
Adding entry into typings cache: 'hapi' => '/Users/matb/Library/Caches/typescript/node_modules/@types/hapi/index.d.ts'
Adding entry into typings cache: 'highlight.js' => '/Users/matb/Library/Caches/typescript/node_modules/@types/highlight.js/index.d.ts'
Adding entry into typings cache: 'hoek' => '/Users/matb/Library/Caches/typescript/node_modules/@types/hoek/index.d.ts'
Adding entry into typings cache: 'hooker' => '/Users/matb/Library/Caches/typescript/node_modules/@types/hooker/index.d.ts'
Adding entry into typings cache: 'iconv-lite' => '/Users/matb/Library/Caches/typescript/node_modules/@types/iconv-lite/index.d.ts'
Adding entry into typings cache: 'inherits' => '/Users/matb/Library/Caches/typescript/node_modules/@types/inherits/index.d.ts'
Adding entry into typings cache: 'ini' => '/Users/matb/Library/Caches/typescript/node_modules/@types/ini/index.d.ts'
Adding entry into typings cache: 'inquirer' => '/Users/matb/Library/Caches/typescript/node_modules/@types/inquirer/index.d.ts'
Adding entry into typings cache: 'is' => '/Users/matb/Library/Caches/typescript/node_modules/@types/is/index.d.ts'
Adding entry into typings cache: 'is-binary-path' => '/Users/matb/Library/Caches/typescript/node_modules/@types/is-binary-path/index.d.ts'
Adding entry into typings cache: 'is-my-json-valid' => '/Users/matb/Library/Caches/typescript/node_modules/@types/is-my-json-valid/index.d.ts'
Adding entry into typings cache: 'istanbul' => '/Users/matb/Library/Caches/typescript/node_modules/@types/istanbul/index.d.ts'
Adding entry into typings cache: 'jade' => '/Users/matb/Library/Caches/typescript/node_modules/@types/jade/index.d.ts'
Adding entry into typings cache: 'jest' => '/Users/matb/Library/Caches/typescript/node_modules/@types/jest/index.d.ts'
Adding entry into typings cache: 'js-beautify' => '/Users/matb/Library/Caches/typescript/node_modules/@types/js-beautify/index.d.ts'
Adding entry into typings cache: 'js-yaml' => '/Users/matb/Library/Caches/typescript/node_modules/@types/js-yaml/index.d.ts'
Adding entry into typings cache: 'jsbn' => '/Users/matb/Library/Caches/typescript/node_modules/@types/jsbn/index.d.ts'
Adding entry into typings cache: 'karma' => '/Users/matb/Library/Caches/typescript/node_modules/@types/karma/index.d.ts'
Adding entry into typings cache: 'karma-coverage' => '/Users/matb/Library/Caches/typescript/node_modules/@types/karma-coverage/index.d.ts'
Adding entry into typings cache: 'karma-jasmine' => '/Users/matb/Library/Caches/typescript/node_modules/@types/karma-jasmine/index.d.ts'
Adding entry into typings cache: 'lab' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lab/index.d.ts'
Adding entry into typings cache: 'lazy.js' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lazy.js/index.d.ts'
Adding entry into typings cache: 'lodash' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts'
Adding entry into typings cache: 'lodash.escape' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lodash.escape/index.d.ts'
Adding entry into typings cache: 'lodash.isarguments' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lodash.isarguments/index.d.ts'
Adding entry into typings cache: 'lodash.isarray' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lodash.isarray/index.d.ts'
Adding entry into typings cache: 'lodash.keys' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lodash.keys/index.d.ts'
Adding entry into typings cache: 'lodash.template' => '/Users/matb/Library/Caches/typescript/node_modules/@types/lodash.template/index.d.ts'
Adding entry into typings cache: 'markdown-it' => '/Users/matb/Library/Caches/typescript/node_modules/@types/markdown-it/index.d.ts'
Adding entry into typings cache: 'marked' => '/Users/matb/Library/Caches/typescript/node_modules/@types/marked/index.d.ts'
Adding entry into typings cache: 'micromatch' => '/Users/matb/Library/Caches/typescript/node_modules/@types/micromatch/index.d.ts'
Adding entry into typings cache: 'mime' => '/Users/matb/Library/Caches/typescript/node_modules/@types/mime/index.d.ts'
Adding entry into typings cache: 'minimatch' => '/Users/matb/Library/Caches/typescript/node_modules/@types/minimatch/index.d.ts'
Adding entry into typings cache: 'minimist' => '/Users/matb/Library/Caches/typescript/node_modules/@types/minimist/index.d.ts'
Adding entry into typings cache: 'mkdirp' => '/Users/matb/Library/Caches/typescript/node_modules/@types/mkdirp/index.d.ts'
Adding entry into typings cache: 'mocha' => '/Users/matb/Library/Caches/typescript/node_modules/@types/mocha/index.d.ts'
Adding entry into typings cache: 'mock-fs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/mock-fs/index.d.ts'
Adding entry into typings cache: 'ms' => '/Users/matb/Library/Caches/typescript/node_modules/@types/ms/index.d.ts'
Adding entry into typings cache: 'node' => '/Users/matb/Library/Caches/typescript/node_modules/@types/node/index.d.ts'
Adding entry into typings cache: 'nodeunit' => '/Users/matb/Library/Caches/typescript/node_modules/@types/nodeunit/index.d.ts'
Adding entry into typings cache: 'nopt' => '/Users/matb/Library/Caches/typescript/node_modules/@types/nopt/index.d.ts'
Adding entry into typings cache: 'number-is-nan' => '/Users/matb/Library/Caches/typescript/node_modules/@types/number-is-nan/index.d.ts'
Adding entry into typings cache: 'object-assign' => '/Users/matb/Library/Caches/typescript/node_modules/@types/object-assign/index.d.ts'
Adding entry into typings cache: 'once' => '/Users/matb/Library/Caches/typescript/node_modules/@types/once/index.d.ts'
Adding entry into typings cache: 'optimist' => '/Users/matb/Library/Caches/typescript/node_modules/@types/optimist/index.d.ts'
Adding entry into typings cache: 'parse-glob' => '/Users/matb/Library/Caches/typescript/node_modules/@types/parse-glob/index.d.ts'
Adding entry into typings cache: 'parse5' => '/Users/matb/Library/Caches/typescript/node_modules/@types/parse5/index.d.ts'
Adding entry into typings cache: 'path-is-absolute' => '/Users/matb/Library/Caches/typescript/node_modules/@types/path-is-absolute/index.d.ts'
Adding entry into typings cache: 'pify' => '/Users/matb/Library/Caches/typescript/node_modules/@types/pify/index.d.ts'
Adding entry into typings cache: 'prettyjson' => '/Users/matb/Library/Caches/typescript/node_modules/@types/prettyjson/index.d.ts'
Adding entry into typings cache: 'progress' => '/Users/matb/Library/Caches/typescript/node_modules/@types/progress/index.d.ts'
Adding entry into typings cache: 'proxyquire' => '/Users/matb/Library/Caches/typescript/node_modules/@types/proxyquire/index.d.ts'
Adding entry into typings cache: 'pump' => '/Users/matb/Library/Caches/typescript/node_modules/@types/pump/index.d.ts'
Adding entry into typings cache: 'qs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/qs/index.d.ts'
Adding entry into typings cache: 'raw-body' => '/Users/matb/Library/Caches/typescript/node_modules/@types/raw-body/index.d.ts'
Adding entry into typings cache: 'rc' => '/Users/matb/Library/Caches/typescript/node_modules/@types/rc/index.d.ts'
Adding entry into typings cache: 'react' => '/Users/matb/Library/Caches/typescript/node_modules/@types/react/index.d.ts'
Adding entry into typings cache: 'react-native' => '/Users/matb/Library/Caches/typescript/node_modules/@types/react-native/index.d.ts'
Adding entry into typings cache: 'react-native-fs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/react-native-fs/index.d.ts'
Adding entry into typings cache: 'react-router' => '/Users/matb/Library/Caches/typescript/node_modules/@types/react-router/index.d.ts'
Adding entry into typings cache: 'react-test-renderer' => '/Users/matb/Library/Caches/typescript/node_modules/@types/react-test-renderer/index.d.ts'
Adding entry into typings cache: 'replace-ext' => '/Users/matb/Library/Caches/typescript/node_modules/@types/replace-ext/index.d.ts'
Adding entry into typings cache: 'request' => '/Users/matb/Library/Caches/typescript/node_modules/@types/request/index.d.ts'
Adding entry into typings cache: 'requirejs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/requirejs/index.d.ts'
Adding entry into typings cache: 'resolve' => '/Users/matb/Library/Caches/typescript/node_modules/@types/resolve/index.d.ts'
Adding entry into typings cache: 'resolve-from' => '/Users/matb/Library/Caches/typescript/node_modules/@types/resolve-from/index.d.ts'
Adding entry into typings cache: 'rimraf' => '/Users/matb/Library/Caches/typescript/node_modules/@types/rimraf/index.d.ts'
Adding entry into typings cache: 'run-sequence' => '/Users/matb/Library/Caches/typescript/node_modules/@types/run-sequence/index.d.ts'
Adding entry into typings cache: 'sax' => '/Users/matb/Library/Caches/typescript/node_modules/@types/sax/index.d.ts'
Adding entry into typings cache: 'semver' => '/Users/matb/Library/Caches/typescript/node_modules/@types/semver/index.d.ts'
Adding entry into typings cache: 'shelljs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/shelljs/index.d.ts'
Adding entry into typings cache: 'should' => '/Users/matb/Library/Caches/typescript/node_modules/@types/should/index.d.ts'
Adding entry into typings cache: 'sinon' => '/Users/matb/Library/Caches/typescript/node_modules/@types/sinon/index.d.ts'
Adding entry into typings cache: 'sinon-chai' => '/Users/matb/Library/Caches/typescript/node_modules/@types/sinon-chai/index.d.ts'
Adding entry into typings cache: 'source-map' => '/Users/matb/Library/Caches/typescript/node_modules/@types/source-map/index.d.ts'
Adding entry into typings cache: 'source-map-support' => '/Users/matb/Library/Caches/typescript/node_modules/@types/source-map-support/index.d.ts'
Adding entry into typings cache: 'sshpk' => '/Users/matb/Library/Caches/typescript/node_modules/@types/sshpk/index.d.ts'
Adding entry into typings cache: 'stream-to-array' => '/Users/matb/Library/Caches/typescript/node_modules/@types/stream-to-array/index.d.ts'
Adding entry into typings cache: 'string' => '/Users/matb/Library/Caches/typescript/node_modules/@types/string/index.d.ts'
Adding entry into typings cache: 'strip-ansi' => '/Users/matb/Library/Caches/typescript/node_modules/@types/strip-ansi/index.d.ts'
Adding entry into typings cache: 'strip-bom' => '/Users/matb/Library/Caches/typescript/node_modules/@types/strip-bom/index.d.ts'
Adding entry into typings cache: 'strip-json-comments' => '/Users/matb/Library/Caches/typescript/node_modules/@types/strip-json-comments/index.d.ts'
Adding entry into typings cache: 'supports-color' => '/Users/matb/Library/Caches/typescript/node_modules/@types/supports-color/index.d.ts'
Adding entry into typings cache: 'swig' => '/Users/matb/Library/Caches/typescript/node_modules/@types/swig/index.d.ts'
Adding entry into typings cache: 'table' => '/Users/matb/Library/Caches/typescript/node_modules/@types/table/index.d.ts'
Adding entry into typings cache: 'tape' => '/Users/matb/Library/Caches/typescript/node_modules/@types/tape/index.d.ts'
Adding entry into typings cache: 'tar' => '/Users/matb/Library/Caches/typescript/node_modules/@types/tar/index.d.ts'
Adding entry into typings cache: 'temp' => '/Users/matb/Library/Caches/typescript/node_modules/@types/temp/index.d.ts'
Adding entry into typings cache: 'through' => '/Users/matb/Library/Caches/typescript/node_modules/@types/through/index.d.ts'
Adding entry into typings cache: 'through2' => '/Users/matb/Library/Caches/typescript/node_modules/@types/through2/index.d.ts'
Adding entry into typings cache: 'tmp' => '/Users/matb/Library/Caches/typescript/node_modules/@types/tmp/index.d.ts'
Adding entry into typings cache: 'uglify-js' => '/Users/matb/Library/Caches/typescript/node_modules/@types/uglify-js/index.d.ts'
Adding entry into typings cache: 'underscore' => '/Users/matb/Library/Caches/typescript/node_modules/@types/underscore/index.d.ts'
Adding entry into typings cache: 'underscore.string' => '/Users/matb/Library/Caches/typescript/node_modules/@types/underscore.string/index.d.ts'
Adding entry into typings cache: 'uuid' => '/Users/matb/Library/Caches/typescript/node_modules/@types/uuid/index.d.ts'
Adding entry into typings cache: 'v8-profiler' => '/Users/matb/Library/Caches/typescript/node_modules/@types/v8-profiler/index.d.ts'
Adding entry into typings cache: 'verror' => '/Users/matb/Library/Caches/typescript/node_modules/@types/verror/index.d.ts'
Adding entry into typings cache: 'vinyl' => '/Users/matb/Library/Caches/typescript/node_modules/@types/vinyl/index.d.ts'
Adding entry into typings cache: 'vinyl-fs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/vinyl-fs/index.d.ts'
Adding entry into typings cache: 'winreg' => '/Users/matb/Library/Caches/typescript/node_modules/@types/winreg/index.d.ts'
Adding entry into typings cache: 'xmlbuilder' => '/Users/matb/Library/Caches/typescript/node_modules/@types/xmlbuilder/index.d.ts'
Adding entry into typings cache: 'xtend' => '/Users/matb/Library/Caches/typescript/node_modules/@types/xtend/index.d.ts'
Adding entry into typings cache: 'xterm' => '/Users/matb/Library/Caches/typescript/node_modules/@types/xterm/index.d.ts'
Adding entry into typings cache: 'yargs' => '/Users/matb/Library/Caches/typescript/node_modules/@types/yargs/index.d.ts'
Adding entry into typings cache: 'zone.js' => '/Users/matb/Library/Caches/typescript/node_modules/@types/zone.js/index.d.ts'
Finished processing cache location '/Users/matb/Library/Caches/typescript'
Process id: 61166
Npm config file: /Users/matb/Library/Caches/typescript/package.json
Updating types-registry npm package...
Parent process has exited, shutting down...

And here's the process info:

61164  98.8  2.6  3617780 442536 s000  R+    3:55PM   2:18.39 /Users/matb/projects/vscode/.build/electron/Code - OSS.app/Contents/Frameworks/Code - OSS Helper.app/Contents/MacOS/Code - OSS Helper /Users/matb/projects/vscode/extensions/typescript/out/utils/electronForkStart /Users/matb/projects/vscode/extensions/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry

@mhegazy
Copy link
Contributor

mhegazy commented Mar 13, 2017

A jsconfig.json with no include will attempt to load all .js files recursively under current folder. while we should not crash, loading all files is what is expected. I would recommend adding include or moving the file to a separate directory.

@zhengbli
Copy link
Contributor

zhengbli commented Mar 27, 2017

This is kinda related to the other issue where the user doesn't know where the root of the project was set to. We could expose the information somewhere on the UI, so that the user can know if the t/jsconfig.json that current in effect is the expected one. The path to the config file is included in the response of projectInfo request, could VSCode show that somewhere on the UI? @mjbvz

Edit:
Actually I just saw microsoft/vscode#20571
I wonder could I enable it in the insiders build? And does clicking on the "tsconfig" gives you the full path of that config file?

@mjbvz
Copy link
Contributor Author

mjbvz commented Apr 4, 2017

microsoft/vscode#20571 was reverted as there were concerns about polluting the status bar. Instead we added some commands to jump to the current config file.

One other problem I noticed when having a tsconfig.json in my home directory: opening a d.ts file installed by TypeScript in ~/Library/... would cause the home directory tsconfig.json to be loaded as a project by the TSServer. On the VSCode side, in my view we should never load a project that is outside of the user's root workspace. Is there a way we can tell TypeScript to only load projects under the VSCode root workspace?

@mhegazy
Copy link
Contributor

mhegazy commented Apr 5, 2017

What about just opening loose files? VS supports those too. I understand that we should limit the number of files scanned/included.

@mjbvz
Copy link
Contributor Author

mjbvz commented Apr 5, 2017

@mhegazy Yes, limiting the scanning would be the more complete fix here

I still am wondering though: for loose files, should we really automatically load the project corresponding to the file when a user opens it? My thinking for VSCode is that if you have a workspace open and then open a file outside the workspace, we could just treat the opened file as a standalone file. If you are only opening loose files in VSCode (and have not opened any workspaces) then perhaps we should try to load the project for the files as well. This would be a regression in behavior though

@zhengbli
Copy link
Contributor

We can add a projectRootPath parameter to the file open API, so that the searching for project config file stops at the projectRootPath. This way VSCode can decide what to do for loose files, as it can choose to pass the current folder path as the projectRootPath so searching wouldn't go up-level.

@mhegazy
Copy link
Contributor

mhegazy commented Apr 19, 2017

@mjbvz there is some work here for VSCode to use this change, you will need to pass the projectRootPath as appropriate.

@mjbvz
Copy link
Contributor Author

mjbvz commented Apr 19, 2017

Great! I've opened microsoft/vscode#25040 to track this on our side. Please let me know when a new insiders build with this fix is available

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue VS Code Tracked There is a VS Code equivalent to this issue
Projects
None yet
Development

No branches or pull requests

3 participants