{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/8425","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/8425/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/8425/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/8425/events","html_url":"https://github.com/dotnet/roslyn/pull/8425","id":131786100,"number":8425,"title":"Change how we format on certain commit..","user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-05T23:14:21Z","updated_at":"2016-02-09T00:08:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/8425","html_url":"https://github.com/dotnet/roslyn/pull/8425","diff_url":"https://github.com/dotnet/roslyn/pull/8425.diff","patch_url":"https://github.com/dotnet/roslyn/pull/8425.patch"},"body":"..chars from completion. We used to call the formatting service from the\r\ncompletion list with the span equal to that of the text that we\r\ninserted, in all cases. This may not be the right approach in all cases\r\nand that is manifested when we are formatting for a typed char that\r\nhappens to be the trigger character for the formatter as well. In such\r\ncases we must find the right span to give to the formatter, or in other\r\nwords, the span the formatter would have come up with if it were\r\ntriggered first for the typed char. We do this by simply invoking the\r\nappropriate formatting service API and giving it the typed char and its\r\nposition, which lets the formatting service to compute the right\r\nspan.\r\nWe do this only when were invoking the completion's commit char is also\r\na trigger for formatting. In other cases, we continue taking the\r\nexisting code path of formatting by giving it a known span.\r\n\r\nFixes #7768, #8228"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/181633985","html_url":"https://github.com/dotnet/roslyn/pull/8425#issuecomment-181633985","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/8425","id":181633985,"user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T00:08:02Z","updated_at":"2016-02-09T00:08:02Z","body":"retest vsi please\r\n"}}