{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/1037","repository_url":"https://api.github.com/repos/TypeStrong/atom-typescript","labels_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/1037/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/1037/comments","events_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/1037/events","html_url":"https://github.com/TypeStrong/atom-typescript/issues/1037","id":168201480,"number":1037,"title":"Analysis of .ts files is very slow","user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-28T21:29:43Z","updated_at":"2016-09-29T08:06:00Z","closed_at":null,"body":"Since upgrading to 10.1.5 analysis of .ts files has become unbearably slow.\r\n\r\nAfter just a few small edits to a singlefile, the circular spinner in the atom-typescript will show several hundred pending requests and spin for many seconds. It's easy to get ~1000 pending requests queued up, and sometimes the count appears stuck.\r\n\r\nIf I look at the requests there any many lines of editText, errorsForFile, getProjectFileDetails. Not knowing how the plug-in works, editText seems reasonable, though it seems like there are usually far more than even the number of keystrokes I've made, but multiple calls to errorsForFile and getProjectFileDetails for edits to one file seem unnecessary?\r\n\r\nAnyway, this is a new and severe performance regression. If there's anyway I can help diagnose, I'm very happy to. I haven't been able to take a profile that shows anything obvious. A colleague has had the same problem, so it could be project setup related."},"comment":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/comments/250398776","html_url":"https://github.com/TypeStrong/atom-typescript/issues/1037#issuecomment-250398776","issue_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/1037","id":250398776,"user":{"login":"maxime1992","id":4950209,"avatar_url":"https://avatars.githubusercontent.com/u/4950209?v=3","gravatar_id":"","url":"https://api.github.com/users/maxime1992","html_url":"https://github.com/maxime1992","followers_url":"https://api.github.com/users/maxime1992/followers","following_url":"https://api.github.com/users/maxime1992/following{/other_user}","gists_url":"https://api.github.com/users/maxime1992/gists{/gist_id}","starred_url":"https://api.github.com/users/maxime1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxime1992/subscriptions","organizations_url":"https://api.github.com/users/maxime1992/orgs","repos_url":"https://api.github.com/users/maxime1992/repos","events_url":"https://api.github.com/users/maxime1992/events{/privacy}","received_events_url":"https://api.github.com/users/maxime1992/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T08:06:00Z","updated_at":"2016-09-29T08:06:00Z","body":"@justinfagnani i'm struggling with atom and typescript ... It's so slow that it's killing me ...\r\nIt take 20 to 40s to have autocompletion in my project. (built with angular-cli).\r\nI'm pretty sure that atom is not (fully ?) taking my configuration into account.\r\n\r\nCan you give me more details on how to solve this ?\r\n\r\nI tried many things and here's my tsconfig.json : \r\n\r\n```json\r\n{\r\n  \"compileOnSave\": false,\r\n  \"buildOnSave\": false,\r\n  \"compilerOptions\": {\r\n    \"declaration\": false,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"lib\": [\r\n      \"es6\",\r\n      \"dom\"\r\n    ],\r\n    \"mapRoot\": \"./\",\r\n    \"module\": \"es6\",\r\n    \"moduleResolution\": \"node\",\r\n    \"outDir\": \"../dist/out-tsc\",\r\n    \"sourceMap\": true,\r\n    \"target\": \"es5\",\r\n    \"noEmitOnError\": true,\r\n    \"noImplicitAny\": false,\r\n    \"typeRoots\": [\r\n      \"../node_modules/@types\"\r\n    ],\r\n    \"inlineSources\": true\r\n  },\r\n  \"filesGlob\": [\r\n    \"!node_modules\",\r\n    \"node_modules/@types/**/*.d.ts\",\r\n    \"src/**/*.d.ts\",\r\n    \"src/**/*.ts\"\r\n  ],\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"dist\",\r\n    \"coverage\"\r\n  ],\r\n  \"atom\": {\r\n    \"rewriteTsconfig\": true\r\n  },\r\n  \"files\": []\r\n}\r\n``` "}}
{"actor":{"display_login":"maxime1992"}}