{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/38673022","id":38673022,"diff_hunk":"@@ -436,7 +436,6 @@ namespace ts.formatting {\n                 case SyntaxKind.Parameter:\r\n                 case SyntaxKind.FunctionType:\r\n                 case SyntaxKind.ConstructorType:\r\n-                case SyntaxKind.UnionType:\r","path":"src/services/formatting/smartIndenter.ts","position":4,"original_position":4,"commit_id":"b8e91814bb98a3c1c413762dc07b694d9532c54e","original_commit_id":"b8e91814bb98a3c1c413762dc07b694d9532c54e","user":{"login":"SaschaNaz","id":3396686,"avatar_url":"https://avatars.githubusercontent.com/u/3396686?v=3","gravatar_id":"","url":"https://api.github.com/users/SaschaNaz","html_url":"https://github.com/SaschaNaz","followers_url":"https://api.github.com/users/SaschaNaz/followers","following_url":"https://api.github.com/users/SaschaNaz/following{/other_user}","gists_url":"https://api.github.com/users/SaschaNaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaschaNaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaschaNaz/subscriptions","organizations_url":"https://api.github.com/users/SaschaNaz/orgs","repos_url":"https://api.github.com/users/SaschaNaz/repos","events_url":"https://api.github.com/users/SaschaNaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaschaNaz/received_events","type":"User","site_admin":false},"body":"I removed it to prevent this:\r\n```typescript\r\ntype a = \r\n    string |\r\n        number |\r\n        boolean;\r\n        ;\r\n```\r\n... to match normal bar operator behavior:\r\n```typescript\r\nlet x = \r\n    3 | \r\n    4 |\r\n    5;\r\n```","created_at":"2015-09-03T17:36:35Z","updated_at":"2015-09-03T17:36:35Z","html_url":"https://github.com/Microsoft/TypeScript/pull/4623#discussion_r38673022","pull_request_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/38673022"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/4623#discussion_r38673022"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623","id":44107626,"html_url":"https://github.com/Microsoft/TypeScript/pull/4623","diff_url":"https://github.com/Microsoft/TypeScript/pull/4623.diff","patch_url":"https://github.com/Microsoft/TypeScript/pull/4623.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4623","number":4623,"state":"open","locked":false,"title":"Format intersection type","user":{"login":"SaschaNaz","id":3396686,"avatar_url":"https://avatars.githubusercontent.com/u/3396686?v=3","gravatar_id":"","url":"https://api.github.com/users/SaschaNaz","html_url":"https://github.com/SaschaNaz","followers_url":"https://api.github.com/users/SaschaNaz/followers","following_url":"https://api.github.com/users/SaschaNaz/following{/other_user}","gists_url":"https://api.github.com/users/SaschaNaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaschaNaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaschaNaz/subscriptions","organizations_url":"https://api.github.com/users/SaschaNaz/orgs","repos_url":"https://api.github.com/users/SaschaNaz/repos","events_url":"https://api.github.com/users/SaschaNaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaschaNaz/received_events","type":"User","site_admin":false},"body":"Related to #4569\r\n\r\nCurrent:\r\n```typescript\r\nlet x: string            &         number\r\n```\r\n\r\nFix:\r\n```typescript\r\nlet x: string & number\r\n```","created_at":"2015-09-03T13:39:27Z","updated_at":"2015-09-03T17:36:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6788bd6f34e105ee30e8ed6e7a4b092983c2dabd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4623/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/b8e91814bb98a3c1c413762dc07b694d9532c54e","head":{"label":"SaschaNaz:formatIntersectionType","ref":"formatIntersectionType","sha":"b8e91814bb98a3c1c413762dc07b694d9532c54e","user":{"login":"SaschaNaz","id":3396686,"avatar_url":"https://avatars.githubusercontent.com/u/3396686?v=3","gravatar_id":"","url":"https://api.github.com/users/SaschaNaz","html_url":"https://github.com/SaschaNaz","followers_url":"https://api.github.com/users/SaschaNaz/followers","following_url":"https://api.github.com/users/SaschaNaz/following{/other_user}","gists_url":"https://api.github.com/users/SaschaNaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaschaNaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaschaNaz/subscriptions","organizations_url":"https://api.github.com/users/SaschaNaz/orgs","repos_url":"https://api.github.com/users/SaschaNaz/repos","events_url":"https://api.github.com/users/SaschaNaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaschaNaz/received_events","type":"User","site_admin":false},"repo":{"id":33726939,"name":"TypeScript","full_name":"SaschaNaz/TypeScript","owner":{"login":"SaschaNaz","id":3396686,"avatar_url":"https://avatars.githubusercontent.com/u/3396686?v=3","gravatar_id":"","url":"https://api.github.com/users/SaschaNaz","html_url":"https://github.com/SaschaNaz","followers_url":"https://api.github.com/users/SaschaNaz/followers","following_url":"https://api.github.com/users/SaschaNaz/following{/other_user}","gists_url":"https://api.github.com/users/SaschaNaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaschaNaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaschaNaz/subscriptions","organizations_url":"https://api.github.com/users/SaschaNaz/orgs","repos_url":"https://api.github.com/users/SaschaNaz/repos","events_url":"https://api.github.com/users/SaschaNaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaschaNaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SaschaNaz/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":true,"url":"https://api.github.com/repos/SaschaNaz/TypeScript","forks_url":"https://api.github.com/repos/SaschaNaz/TypeScript/forks","keys_url":"https://api.github.com/repos/SaschaNaz/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SaschaNaz/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SaschaNaz/TypeScript/teams","hooks_url":"https://api.github.com/repos/SaschaNaz/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/SaschaNaz/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/SaschaNaz/TypeScript/events","assignees_url":"https://api.github.com/repos/SaschaNaz/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/SaschaNaz/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/SaschaNaz/TypeScript/tags","blobs_url":"https://api.github.com/repos/SaschaNaz/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SaschaNaz/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SaschaNaz/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/SaschaNaz/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SaschaNaz/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/SaschaNaz/TypeScript/languages","stargazers_url":"https://api.github.com/repos/SaschaNaz/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/SaschaNaz/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/SaschaNaz/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/SaschaNaz/TypeScript/subscription","commits_url":"https://api.github.com/repos/SaschaNaz/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/SaschaNaz/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/SaschaNaz/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/SaschaNaz/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/SaschaNaz/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/SaschaNaz/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SaschaNaz/TypeScript/merges","archive_url":"https://api.github.com/repos/SaschaNaz/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SaschaNaz/TypeScript/downloads","issues_url":"https://api.github.com/repos/SaschaNaz/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/SaschaNaz/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/SaschaNaz/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/SaschaNaz/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SaschaNaz/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/SaschaNaz/TypeScript/releases{/id}","created_at":"2015-04-10T12:18:24Z","updated_at":"2015-06-05T06:44:19Z","pushed_at":"2015-09-03T13:46:12Z","git_url":"git://github.com/SaschaNaz/TypeScript.git","ssh_url":"git@github.com:SaschaNaz/TypeScript.git","clone_url":"https://github.com/SaschaNaz/TypeScript.git","svn_url":"https://github.com/SaschaNaz/TypeScript","homepage":"http://www.typescriptlang.org","size":200009,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"690b87c2097b0101969c941f085b1f660ecc1a7e","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":20929025,"name":"TypeScript","full_name":"Microsoft/TypeScript","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript","forks_url":"https://api.github.com/repos/Microsoft/TypeScript/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript/releases{/id}","created_at":"2014-06-17T15:28:39Z","updated_at":"2015-09-03T17:22:44Z","pushed_at":"2015-09-03T17:27:05Z","git_url":"git://github.com/Microsoft/TypeScript.git","ssh_url":"git@github.com:Microsoft/TypeScript.git","clone_url":"https://github.com/Microsoft/TypeScript.git","svn_url":"https://github.com/Microsoft/TypeScript","homepage":"http://www.typescriptlang.org","size":1040840,"stargazers_count":6528,"watchers_count":6528,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":732,"mirror_url":null,"open_issues_count":801,"forks":732,"open_issues":801,"watchers":6528,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/4623"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/4623"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/4623/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/4623/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript/statuses/b8e91814bb98a3c1c413762dc07b694d9532c54e"}}}}