{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6063","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6063/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6063/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6063/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6063","id":121638674,"number":6063,"title":"Do vs2015/vscode use ts language service for js files?","user":{"login":"d180cf","id":13122495,"avatar_url":"https://avatars.githubusercontent.com/u/13122495?v=3","gravatar_id":"","url":"https://api.github.com/users/d180cf","html_url":"https://github.com/d180cf","followers_url":"https://api.github.com/users/d180cf/followers","following_url":"https://api.github.com/users/d180cf/following{/other_user}","gists_url":"https://api.github.com/users/d180cf/gists{/gist_id}","starred_url":"https://api.github.com/users/d180cf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d180cf/subscriptions","organizations_url":"https://api.github.com/users/d180cf/orgs","repos_url":"https://api.github.com/users/d180cf/repos","events_url":"https://api.github.com/users/d180cf/events{/privacy}","received_events_url":"https://api.github.com/users/d180cf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-11T05:07:06Z","updated_at":"2015-12-12T22:19:58Z","closed_at":null,"body":"I noticed a considerable regression in how the editor works in js files since vs2012. It's so dramatic that in some cases I have to open vs2012 and edit js files there. The update 1 for vs2015 has made things a bit better, but still editing js files causes too much frustration. vscode behaves similarly, and they say they use the ts language service, hence the title of the question. Particular problems are:\r\n\r\n1\r\nvs2015 often crashes when I attempt to simply view a 100kb js file (the output of tsc). It crashes so often that if I have many things open in vs, I don't dare to open big js files there: I open them separately in notepad or vs2012.\r\n\r\n2\r\nThe \"format the document\" feature is pretty much broken: it inserts/removes whitespaces in random places and what's worse is that formatting produces a new random result every time. At least the Undo feature works. vs2012 doesn't have this problem.\r\n\r\n3\r\nPressing Enter often moves the caret at the beginning of the next line, irrespectively to where the current line starts. This is very annoying because I have to press Tab multiple times after every Enter.\r\n\r\n```ts\r\n    for (const x of [1, 2, 3]) {\r\n| // <-- this is where it puts the caret\r\n```\r\n\r\n4\r\nThe matching `)`, `}` and `]`s are inserted in a very intrusive manner and there is no way, afaik, to disable this behavior. This is very annoying when I need to wrap an existing chunk of code into, let's say, a function:\r\n\r\n```ts\r\nfor (const x of [1, 2, 3])\r\n    console.log(x);\r\n```\r\n\r\nthis is what I get after typing `function f() {`:\r\n\r\n```ts\r\nfunction f(){}for (const x of [1, 2, 3])\r\n    console.log(x);\r\n```\r\n\r\nNow I need to manually pick the closing `}` and relocate it to the right place. Then, of course, when I want to reformat the file to add proper indentation to this little for-loop, the entire file gets messed up.\r\n\r\nP.S. I added 1..4 numbers in such a strange way because github desperately tried to outsmart me: it tried to replace 4 with 1, for whatever reason, and then tried to guess indentation, but guessed it wrong."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/164198702","html_url":"https://github.com/Microsoft/TypeScript/issues/6063#issuecomment-164198702","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6063","id":164198702,"user":{"login":"d180cf","id":13122495,"avatar_url":"https://avatars.githubusercontent.com/u/13122495?v=3","gravatar_id":"","url":"https://api.github.com/users/d180cf","html_url":"https://github.com/d180cf","followers_url":"https://api.github.com/users/d180cf/followers","following_url":"https://api.github.com/users/d180cf/following{/other_user}","gists_url":"https://api.github.com/users/d180cf/gists{/gist_id}","starred_url":"https://api.github.com/users/d180cf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d180cf/subscriptions","organizations_url":"https://api.github.com/users/d180cf/orgs","repos_url":"https://api.github.com/users/d180cf/repos","events_url":"https://api.github.com/users/d180cf/events{/privacy}","received_events_url":"https://api.github.com/users/d180cf/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T22:19:58Z","updated_at":"2015-12-12T22:19:58Z","body":"The 4th issue appears in vs2015."}}