{"action":"created","comment":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/comments/29490817","id":29490817,"diff_hunk":"@@ -0,0 +1,130 @@\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Threading.Tasks;\n+using OmniSharp.Models;\n+using Xunit;\n+\n+namespace OmniSharp.Tests\n+{\n+    public class HighlightFacts\n+    {\n+        [Fact]\n+        public async Task HighlightSingleLine()\n+        {\n+            var workspace = TestHelpers.CreateSimpleWorkspace(new Dictionary<string, string>\n+            {\n+                { \"a.cs\", \"namespace N1\\n{\\nclass C1 { int n = true; }\\n}\" }\n+            });\n+\n+            var controller = new OmnisharpController(workspace, null);\n+            var regions = await controller.Highlight(new HighlightRequest() { FileName = \"a.cs\", Lines = new[] { 2 } });\n+            \n+            ValidateRegions(regions,\n+                new Region(\"keyword\", 2, 0, 5),","path":"tests/OmniSharp.Tests/HighlightFacts.cs","position":23,"original_position":23,"commit_id":"9abfa6130910fddbeb96bbc9e1d47e5d2c9599d7","original_commit_id":"9abfa6130910fddbeb96bbc9e1d47e5d2c9599d7","user":{"login":"Alxandr","id":112334,"avatar_url":"https://avatars.githubusercontent.com/u/112334?v=3","gravatar_id":"","url":"https://api.github.com/users/Alxandr","html_url":"https://github.com/Alxandr","followers_url":"https://api.github.com/users/Alxandr/followers","following_url":"https://api.github.com/users/Alxandr/following{/other_user}","gists_url":"https://api.github.com/users/Alxandr/gists{/gist_id}","starred_url":"https://api.github.com/users/Alxandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alxandr/subscriptions","organizations_url":"https://api.github.com/users/Alxandr/orgs","repos_url":"https://api.github.com/users/Alxandr/repos","events_url":"https://api.github.com/users/Alxandr/events{/privacy}","received_events_url":"https://api.github.com/users/Alxandr/received_events","type":"User","site_admin":false},"body":"I thought I cleaned them up fairly nicely.\r\n\r\nHow would you rather have them?","created_at":"2015-05-01T06:00:27Z","updated_at":"2015-05-01T06:00:27Z","html_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/194#discussion_r29490817","pull_request_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/comments/29490817"},"html":{"href":"https://github.com/OmniSharp/omnisharp-roslyn/pull/194#discussion_r29490817"},"pull_request":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194","id":34387127,"html_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/194","diff_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/194.diff","patch_url":"https://github.com/OmniSharp/omnisharp-roslyn/pull/194.patch","issue_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/194","number":194,"state":"open","locked":false,"title":"Feature highlighting","user":{"login":"Alxandr","id":112334,"avatar_url":"https://avatars.githubusercontent.com/u/112334?v=3","gravatar_id":"","url":"https://api.github.com/users/Alxandr","html_url":"https://github.com/Alxandr","followers_url":"https://api.github.com/users/Alxandr/followers","following_url":"https://api.github.com/users/Alxandr/following{/other_user}","gists_url":"https://api.github.com/users/Alxandr/gists{/gist_id}","starred_url":"https://api.github.com/users/Alxandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alxandr/subscriptions","organizations_url":"https://api.github.com/users/Alxandr/orgs","repos_url":"https://api.github.com/users/Alxandr/repos","events_url":"https://api.github.com/users/Alxandr/events{/privacy}","received_events_url":"https://api.github.com/users/Alxandr/received_events","type":"User","site_admin":false},"body":"Adds a highlighting endpoint.\r\n\r\n@Yantrio was bugging me about PRs and all that -.-","created_at":"2015-04-29T17:38:41Z","updated_at":"2015-05-01T06:00:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3be585e011e7b328331b3ff47eddf460a3a8f06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194/commits","review_comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194/comments","review_comment_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/194/comments","statuses_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/statuses/9abfa6130910fddbeb96bbc9e1d47e5d2c9599d7","head":{"label":"Alxandr:feature-highlighting","ref":"feature-highlighting","sha":"9abfa6130910fddbeb96bbc9e1d47e5d2c9599d7","user":{"login":"Alxandr","id":112334,"avatar_url":"https://avatars.githubusercontent.com/u/112334?v=3","gravatar_id":"","url":"https://api.github.com/users/Alxandr","html_url":"https://github.com/Alxandr","followers_url":"https://api.github.com/users/Alxandr/followers","following_url":"https://api.github.com/users/Alxandr/following{/other_user}","gists_url":"https://api.github.com/users/Alxandr/gists{/gist_id}","starred_url":"https://api.github.com/users/Alxandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alxandr/subscriptions","organizations_url":"https://api.github.com/users/Alxandr/orgs","repos_url":"https://api.github.com/users/Alxandr/repos","events_url":"https://api.github.com/users/Alxandr/events{/privacy}","received_events_url":"https://api.github.com/users/Alxandr/received_events","type":"User","site_admin":false},"repo":{"id":34782233,"name":"omnisharp-roslyn","full_name":"Alxandr/omnisharp-roslyn","owner":{"login":"Alxandr","id":112334,"avatar_url":"https://avatars.githubusercontent.com/u/112334?v=3","gravatar_id":"","url":"https://api.github.com/users/Alxandr","html_url":"https://github.com/Alxandr","followers_url":"https://api.github.com/users/Alxandr/followers","following_url":"https://api.github.com/users/Alxandr/following{/other_user}","gists_url":"https://api.github.com/users/Alxandr/gists{/gist_id}","starred_url":"https://api.github.com/users/Alxandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alxandr/subscriptions","organizations_url":"https://api.github.com/users/Alxandr/orgs","repos_url":"https://api.github.com/users/Alxandr/repos","events_url":"https://api.github.com/users/Alxandr/events{/privacy}","received_events_url":"https://api.github.com/users/Alxandr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alxandr/omnisharp-roslyn","description":"OmniSharp based on roslyn workspaces","fork":true,"url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn","forks_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/forks","keys_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/teams","hooks_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/hooks","issue_events_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/events","assignees_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/tags","blobs_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/languages","stargazers_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/stargazers","contributors_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/contributors","subscribers_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/subscribers","subscription_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/subscription","commits_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/merges","archive_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/downloads","issues_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/labels{/name}","releases_url":"https://api.github.com/repos/Alxandr/omnisharp-roslyn/releases{/id}","created_at":"2015-04-29T08:34:43Z","updated_at":"2015-04-29T08:34:44Z","pushed_at":"2015-04-30T20:01:38Z","git_url":"git://github.com/Alxandr/omnisharp-roslyn.git","ssh_url":"git@github.com:Alxandr/omnisharp-roslyn.git","clone_url":"https://github.com/Alxandr/omnisharp-roslyn.git","svn_url":"https://github.com/Alxandr/omnisharp-roslyn","homepage":"","size":751,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OmniSharp:master","ref":"master","sha":"6cb33299b2c1cf8463235f540515394d8e90fa67","user":{"login":"OmniSharp","id":9420663,"avatar_url":"https://avatars.githubusercontent.com/u/9420663?v=3","gravatar_id":"","url":"https://api.github.com/users/OmniSharp","html_url":"https://github.com/OmniSharp","followers_url":"https://api.github.com/users/OmniSharp/followers","following_url":"https://api.github.com/users/OmniSharp/following{/other_user}","gists_url":"https://api.github.com/users/OmniSharp/gists{/gist_id}","starred_url":"https://api.github.com/users/OmniSharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmniSharp/subscriptions","organizations_url":"https://api.github.com/users/OmniSharp/orgs","repos_url":"https://api.github.com/users/OmniSharp/repos","events_url":"https://api.github.com/users/OmniSharp/events{/privacy}","received_events_url":"https://api.github.com/users/OmniSharp/received_events","type":"Organization","site_admin":false},"repo":{"id":27927984,"name":"omnisharp-roslyn","full_name":"OmniSharp/omnisharp-roslyn","owner":{"login":"OmniSharp","id":9420663,"avatar_url":"https://avatars.githubusercontent.com/u/9420663?v=3","gravatar_id":"","url":"https://api.github.com/users/OmniSharp","html_url":"https://github.com/OmniSharp","followers_url":"https://api.github.com/users/OmniSharp/followers","following_url":"https://api.github.com/users/OmniSharp/following{/other_user}","gists_url":"https://api.github.com/users/OmniSharp/gists{/gist_id}","starred_url":"https://api.github.com/users/OmniSharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmniSharp/subscriptions","organizations_url":"https://api.github.com/users/OmniSharp/orgs","repos_url":"https://api.github.com/users/OmniSharp/repos","events_url":"https://api.github.com/users/OmniSharp/events{/privacy}","received_events_url":"https://api.github.com/users/OmniSharp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OmniSharp/omnisharp-roslyn","description":"OmniSharp based on roslyn workspaces","fork":false,"url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn","forks_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/forks","keys_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/teams","hooks_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/hooks","issue_events_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/events","assignees_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/tags","blobs_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/languages","stargazers_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/stargazers","contributors_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/contributors","subscribers_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/subscribers","subscription_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/subscription","commits_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/merges","archive_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/downloads","issues_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/labels{/name}","releases_url":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/releases{/id}","created_at":"2014-12-12T16:21:03Z","updated_at":"2015-04-30T14:24:49Z","pushed_at":"2015-04-30T20:01:38Z","git_url":"git://github.com/OmniSharp/omnisharp-roslyn.git","ssh_url":"git@github.com:OmniSharp/omnisharp-roslyn.git","clone_url":"https://github.com/OmniSharp/omnisharp-roslyn.git","svn_url":"https://github.com/OmniSharp/omnisharp-roslyn","homepage":"","size":4527,"stargazers_count":78,"watchers_count":78,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":52,"forks":36,"open_issues":52,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194"},"html":{"href":"https://github.com/OmniSharp/omnisharp-roslyn/pull/194"},"issue":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/194"},"comments":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/OmniSharp/omnisharp-roslyn/statuses/9abfa6130910fddbeb96bbc9e1d47e5d2c9599d7"}}}}