{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/2837","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/2837/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/2837/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/2837/events","html_url":"https://github.com/dotnet/roslyn/issues/2837","id":77173276,"number":2837,"title":"Leave block on single line formatting ineffective without brace completion (regression)","user":{"login":"miloush","id":10546952,"avatar_url":"https://avatars.githubusercontent.com/u/10546952?v=3","gravatar_id":"","url":"https://api.github.com/users/miloush","html_url":"https://github.com/miloush","followers_url":"https://api.github.com/users/miloush/followers","following_url":"https://api.github.com/users/miloush/following{/other_user}","gists_url":"https://api.github.com/users/miloush/gists{/gist_id}","starred_url":"https://api.github.com/users/miloush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miloush/subscriptions","organizations_url":"https://api.github.com/users/miloush/orgs","repos_url":"https://api.github.com/users/miloush/repos","events_url":"https://api.github.com/users/miloush/events{/privacy}","received_events_url":"https://api.github.com/users/miloush/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"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Verified","name":"Verified","color":"006400"}],"state":"closed","locked":false,"assignee":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/3","html_url":"https://github.com/dotnet/roslyn/milestones/1.1","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/3/labels","id":937401,"number":3,"title":"1.1","description":"This is our 1.1 Milestone.\r\n\r\n<!---\r\n@huboard:{\"order\":1.5}\r\n-->\r\n","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":0,"closed_issues":743,"state":"closed","created_at":"2015-01-15T20:48:41Z","updated_at":"2016-01-25T22:12:59Z","due_on":null,"closed_at":"2016-01-18T18:17:21Z"},"comments":15,"created_at":"2015-05-17T00:58:10Z","updated_at":"2016-02-29T18:13:12Z","closed_at":"2015-08-26T21:13:42Z","body":"Settings to reproduce:\r\nC# > Formatting > Wrapping > Leave block on single line `on` (on by default)\r\nC# > Automatic brace completion `off` (newly on by default)\r\n\r\n```csharp\r\nnamespace ConsoleApplication1\r\n{\r\n    class Program\r\n    {\r\n        static bool Property\r\n        {\r\n            get { return true|\r\n    }\r\n}\r\n```\r\n\r\nIf semicolon is typed at this point, the formatter decides to reformat the block:\r\n```csharp\r\n            get {\r\n                return true;\r\n```\r\n\r\nLikely because it thinks the next closing bracket belongs to the getter which it does not. This parsing strategy (exhibited in other contexts, too) makes the *leave block on single line* setting ineffective, and the issue is hit very often during typing and is time consuming to fix.\r\n\r\nThis was not a problem in previous version of Visual Studio (without brace completion).\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/190316493","html_url":"https://github.com/dotnet/roslyn/issues/2837#issuecomment-190316493","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/2837","id":190316493,"user":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T18:13:12Z","updated_at":"2016-02-29T18:13:12Z","body":"You shoudl create it."}}