{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/33496","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/33496/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/33496/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/33496/events","html_url":"https://github.com/Microsoft/vscode/issues/33496","id":253934193,"number":33496,"title":"Extract method breaks formatting","user":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars1.githubusercontent.com/u/1931590?v=4","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"labels":[{"id":291055694,"url":"https://api.github.com/repos/Microsoft/vscode/labels/typescript","name":"typescript","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-08-30T09:27:54Z","updated_at":"2017-08-30T20:44:55Z","closed_at":"2017-08-30T20:44:55Z","author_association":"MEMBER","body":"```ts\r\nfunction foo(b1: boolean, b2: boolean) {\r\n\tlet x = 0;\r\n\tlet y = 0;\r\n\r\n\tif (b1) {\r\n\t\tx = 1;\r\n\t}\r\n\tif (b2) {\r\n\t\ty = y + x;\r\n\t}\r\n\treturn y;\r\n}\r\n```\r\n\r\nSelect\r\n```ts\r\n\tif (b1) {\r\n\t\tx = 1;\r\n\t}\r\n\tif (b2) {\r\n\t\ty = y + x;\r\n\t}\r\n```\r\n\r\n- extract\r\n- you get\r\n```ts\r\nfunction newFunction(b1: boolean, x: number, b2: boolean, y: number) {\r\n    if(b1) {\r\n    x = 1;\r\n}\r\n    if(b2) {\r\n    y = y + x;\r\n}\r\n    return { x, y };\r\n}\r\n```\r\n\r\nObserve the broken indentation\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/326113537","html_url":"https://github.com/Microsoft/vscode/issues/33496#issuecomment-326113537","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/33496","id":326113537,"user":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T20:44:55Z","updated_at":"2017-08-30T20:44:55Z","author_association":"CONTRIBUTOR","body":"Duplicate of #33443, also tracked upstream by Microsoft/TypeScript#18091\r\n\r\nWill investigate a workaround"}}
{"actor":{"display_login":"mjbvz"}}