{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/779","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/779/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/779/events","html_url":"https://github.com/dotnet/roslyn/issues/779","id":58603626,"number":779,"title":"Formatter doesn't format sometimes","user":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"basoundr","id":10550513,"avatar_url":"https://avatars.githubusercontent.com/u/10550513?v=3","gravatar_id":"","url":"https://api.github.com/users/basoundr","html_url":"https://github.com/basoundr","followers_url":"https://api.github.com/users/basoundr/followers","following_url":"https://api.github.com/users/basoundr/following{/other_user}","gists_url":"https://api.github.com/users/basoundr/gists{/gist_id}","starred_url":"https://api.github.com/users/basoundr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basoundr/subscriptions","organizations_url":"https://api.github.com/users/basoundr/orgs","repos_url":"https://api.github.com/users/basoundr/repos","events_url":"https://api.github.com/users/basoundr/events{/privacy}","received_events_url":"https://api.github.com/users/basoundr/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/1","html_url":"https://github.com/dotnet/roslyn/milestones/1.0%20(stable)","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/1/labels","id":937397,"number":1,"title":"1.0 (stable)","description":"This is our 1.0 Milestone. ","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":194,"closed_issues":58,"state":"open","created_at":"2015-01-15T20:45:24Z","updated_at":"2015-03-25T23:45:02Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-23T15:45:25Z","updated_at":"2015-03-26T00:24:59Z","closed_at":null,"body":"Have a CU which contains code like below and from the whole node format that range. Observe that you don't get formatting results.\r\n\r\n```sourceText = sourceText.WithChanges(new[] {\r\n                    new TextChange(    new TextSpan(startOffset,      endOffset - startOffset),     request.NewText)\r\n                        });```\r\n\r\n\r\nFrom: https://github.com/OmniSharp/omnisharp-roslyn/issues/75"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/86263676","html_url":"https://github.com/dotnet/roslyn/issues/779#issuecomment-86263676","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/779","id":86263676,"user":{"login":"basoundr","id":10550513,"avatar_url":"https://avatars.githubusercontent.com/u/10550513?v=3","gravatar_id":"","url":"https://api.github.com/users/basoundr","html_url":"https://github.com/basoundr","followers_url":"https://api.github.com/users/basoundr/followers","following_url":"https://api.github.com/users/basoundr/following{/other_user}","gists_url":"https://api.github.com/users/basoundr/gists{/gist_id}","starred_url":"https://api.github.com/users/basoundr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basoundr/subscriptions","organizations_url":"https://api.github.com/users/basoundr/orgs","repos_url":"https://api.github.com/users/basoundr/repos","events_url":"https://api.github.com/users/basoundr/events{/privacy}","received_events_url":"https://api.github.com/users/basoundr/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T00:24:59Z","updated_at":"2015-03-26T00:24:59Z","body":"@jrieken @Pilchie Formatting inside Array Initializers is treated special. Array Initializers are usually custom formatted by the user. For Eg:\r\n```\r\n        int[] matrix = new[] {\r\n          1,     2,     3,     4,     5,\r\n          6,     7,     8,     9,    10,\r\n         11,    12,    13,    14,    15};\r\n```\r\n\r\nAnother Example is,\r\n```\r\nCustomer customers = new Customer[](new[] {\r\n                                //LastName             //FirstName\r\n    new Customer(                     \"A\",                     \"B\"),\r\n    new Customer(            \"BiggerName\",            \"BiggerName\"),\r\n    new Customer(      \"VeryLongLongName\",      \"VeryLongLongName\")\r\n});\r\n```\r\n\r\nHence we have the current behavior which is to preserve the user preferred format and not disturb it."}}