{"action":"created","issue":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/312","labels_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/312/comments","events_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/312/events","html_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/312","id":109968526,"number":312,"title":"correctly flow formatting options","user":{"login":"filipw","id":1710369,"avatar_url":"https://avatars.githubusercontent.com/u/1710369?v=3","gravatar_id":"","url":"https://api.github.com/users/filipw","html_url":"https://github.com/filipw","followers_url":"https://api.github.com/users/filipw/followers","following_url":"https://api.github.com/users/filipw/following{/other_user}","gists_url":"https://api.github.com/users/filipw/gists{/gist_id}","starred_url":"https://api.github.com/users/filipw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipw/subscriptions","organizations_url":"https://api.github.com/users/filipw/orgs","repos_url":"https://api.github.com/users/filipw/repos","events_url":"https://api.github.com/users/filipw/events{/privacy}","received_events_url":"https://api.github.com/users/filipw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-06T09:27:09Z","updated_at":"2015-10-06T09:36:31Z","closed_at":"2015-10-06T09:31:09Z","pull_request":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/312","html_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/312","diff_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/312.diff","patch_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/312.patch"},"body":"I noticed another bug in formatting code - the formatting options are not flown correctly into `FormatAsync` when using `GetFormattingChangesForRange`.\r\n\r\nOn the other hand, when using `GetFormattedDocument`, the options are applied ([see here](https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp/Workers/Format/Formatting.cs#L80)).\r\n\r\nThis looks like a clear bug, because when formatting **the entire document**, the options (i.e. the new indentation size I added yesterday or use of tabs) are applied as expected, but on stroke or range formatting they are not - falling back to the defaults, resulting in two different types of behavior in the document :)\r\n\r\nThis PR fixes it and correctly applies formatting also on stroke/range:\r\n![format](https://cloud.githubusercontent.com/assets/1710369/10304850/fdda5468-6c1c-11e5-9393-69d43246d469.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/comments/145798437","html_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/312#issuecomment-145798437","issue_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/312","id":145798437,"user":{"login":"nosami","id":667194,"avatar_url":"https://avatars.githubusercontent.com/u/667194?v=3","gravatar_id":"","url":"https://api.github.com/users/nosami","html_url":"https://github.com/nosami","followers_url":"https://api.github.com/users/nosami/followers","following_url":"https://api.github.com/users/nosami/following{/other_user}","gists_url":"https://api.github.com/users/nosami/gists{/gist_id}","starred_url":"https://api.github.com/users/nosami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosami/subscriptions","organizations_url":"https://api.github.com/users/nosami/orgs","repos_url":"https://api.github.com/users/nosami/repos","events_url":"https://api.github.com/users/nosami/events{/privacy}","received_events_url":"https://api.github.com/users/nosami/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T09:36:31Z","updated_at":"2015-10-06T09:36:31Z","body":"doesn't work properly at all, so it isn't even enabled.  Needs to handle cases like these (| is the cursor) `{|}`,  `{ someText|}`, `(x => |)` etc"}}