{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19652","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19652/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19652/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19652/events","html_url":"https://github.com/Microsoft/TypeScript/issues/19652","id":270350657,"number":19652,"title":"Restarting server changes tabbing for open files","user":{"login":"TheColorRed","id":1571806,"avatar_url":"https://avatars3.githubusercontent.com/u/1571806?v=4","gravatar_id":"","url":"https://api.github.com/users/TheColorRed","html_url":"https://github.com/TheColorRed","followers_url":"https://api.github.com/users/TheColorRed/followers","following_url":"https://api.github.com/users/TheColorRed/following{/other_user}","gists_url":"https://api.github.com/users/TheColorRed/gists{/gist_id}","starred_url":"https://api.github.com/users/TheColorRed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheColorRed/subscriptions","organizations_url":"https://api.github.com/users/TheColorRed/orgs","repos_url":"https://api.github.com/users/TheColorRed/repos","events_url":"https://api.github.com/users/TheColorRed/events{/privacy}","received_events_url":"https://api.github.com/users/TheColorRed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-01T15:39:24Z","updated_at":"2017-11-01T16:00:59Z","closed_at":null,"author_association":"NONE","body":"When I run the command: `TypeScript: Restart TS Server` any file that I have open it changes my tabs from `2` spaces to `4` spaces after I save the file.\r\n\r\n<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  2.5.3\r\n\r\n```ts\r\nfunction abc123(){\r\n  console.log('Hello World')\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nWhen restarting the server files that are open, the tabbing should not change when the file gets saved.\r\n\r\n**Actual behavior:**\r\n\r\nWhen restarting the server tabs get changed from `2` spaces to `4` spaces when the file gets saved.\r\n\r\nI had to press save a few times here but still does this:\r\n\r\n![reformat](https://user-images.githubusercontent.com/1571806/32283497-7eef1e92-bef2-11e7-8df5-9e90341d63d6.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/341150943","html_url":"https://github.com/Microsoft/TypeScript/issues/19652#issuecomment-341150943","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19652","id":341150943,"user":{"login":"andy-ms","id":19274678,"avatar_url":"https://avatars3.githubusercontent.com/u/19274678?v=4","gravatar_id":"","url":"https://api.github.com/users/andy-ms","html_url":"https://github.com/andy-ms","followers_url":"https://api.github.com/users/andy-ms/followers","following_url":"https://api.github.com/users/andy-ms/following{/other_user}","gists_url":"https://api.github.com/users/andy-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-ms/subscriptions","organizations_url":"https://api.github.com/users/andy-ms/orgs","repos_url":"https://api.github.com/users/andy-ms/repos","events_url":"https://api.github.com/users/andy-ms/events{/privacy}","received_events_url":"https://api.github.com/users/andy-ms/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T16:00:59Z","updated_at":"2017-11-01T16:00:59Z","author_association":"CONTRIBUTOR","body":"That's interesting... looks like there's a delay in between the restart and the formatting change.\r\nTypeScript shouldn't be formatting your code on startup so something is up.\r\nCould you try reproducing this with minimal vscode settings and no extensions installed?\r\n"}}
{"actor":{"display_login":"andy-ms"}}