{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11629","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11629/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11629/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11629/events","html_url":"https://github.com/Microsoft/TypeScript/issues/11629","id":183075426,"number":11629,"title":"Incorrect (potentially) indentation of function arguments spanning multiple lines","user":{"login":"waderyan","id":2449568,"avatar_url":"https://avatars.githubusercontent.com/u/2449568?v=3","gravatar_id":"","url":"https://api.github.com/users/waderyan","html_url":"https://github.com/waderyan","followers_url":"https://api.github.com/users/waderyan/followers","following_url":"https://api.github.com/users/waderyan/following{/other_user}","gists_url":"https://api.github.com/users/waderyan/gists{/gist_id}","starred_url":"https://api.github.com/users/waderyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waderyan/subscriptions","organizations_url":"https://api.github.com/users/waderyan/orgs","repos_url":"https://api.github.com/users/waderyan/repos","events_url":"https://api.github.com/users/waderyan/events{/privacy}","received_events_url":"https://api.github.com/users/waderyan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/VS%20Code%20Tracked","name":"VS Code Tracked","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-14T15:09:58Z","updated_at":"2016-10-15T11:53:27Z","closed_at":null,"body":"_From @nomaed on October 14, 2016 10:40_\n\n- VSCode Version: 1.6.1\r\n- OS Version: macOS Sierra 10.12\r\n\r\nSteps to Reproduce:\r\n\r\n* Write a function (or a method) with several arguments (I did it with JavaScript and TypeScript files, but I believe any would work).\r\n```javascript\r\nfunction myFunc(arg1, arg2, arg3, ...args) {\r\n}\r\n```\r\n * Split arguments to several lines by hitting Enter before arguments\r\n```javascript\r\nfunction myFunc(arg1,\r\narg2,\r\narg3,\r\n...args) {\r\n}\r\n```\r\n\r\nAuto-formatting produces this result:\r\n```javascript\r\nfunction myFunc(arg1,\r\n    arg2,\r\n    arg3,\r\n    ...args) {\r\n}\r\n```\r\n\r\nI would expect to see this result instead though:\r\n```javascript\r\nfunction myFunc(arg1,\r\n                arg2,\r\n                arg3,\r\n                ...args) {\r\n}\r\n```\r\n\r\nAlso, when manually formatting the arguments to appear in the same column (note: this is also the default/recommended setting in `tslint` and maybe other linters), then further lines will start with wrong indentation:\r\n```javascript\r\nfunction myFunc(arg1,\r\n                arg2,\r\n                arg3,\r\n                ...args) {\r\n                    console.log('huh...');\r\n}\r\n```\r\n\r\n\r\n![vscode-multi-line-args-indent](https://cloud.githubusercontent.com/assets/9551921/19384766/a89ed4d8-9213-11e6-9890-ec41080e8843.gif)\r\n\n\n_Copied from original issue: Microsoft/vscode#13748_"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/253979847","html_url":"https://github.com/Microsoft/TypeScript/issues/11629#issuecomment-253979847","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11629","id":253979847,"user":{"login":"19majkel94","id":10618781,"avatar_url":"https://avatars.githubusercontent.com/u/10618781?v=3","gravatar_id":"","url":"https://api.github.com/users/19majkel94","html_url":"https://github.com/19majkel94","followers_url":"https://api.github.com/users/19majkel94/followers","following_url":"https://api.github.com/users/19majkel94/following{/other_user}","gists_url":"https://api.github.com/users/19majkel94/gists{/gist_id}","starred_url":"https://api.github.com/users/19majkel94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/19majkel94/subscriptions","organizations_url":"https://api.github.com/users/19majkel94/orgs","repos_url":"https://api.github.com/users/19majkel94/repos","events_url":"https://api.github.com/users/19majkel94/events{/privacy}","received_events_url":"https://api.github.com/users/19majkel94/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T11:53:27Z","updated_at":"2016-10-15T11:53:27Z","body":"What about the returned type? It should be indent, in next line, or how?\r\n\r\n```typescript\r\nclass Example {\r\n    public method(arg1: string,\r\n                  arg2: number,\r\n                  arg3: boolean)\r\n                  : ReturnType {\r\n        const result = doSomething();\r\n        return new ReturnType(result);\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"19majkel94"}}