GitHub PullRequestReviewCommentEvent at 2014-11-10 02:48:41
Repository: Dynamo
Actor: aparajit-pratap
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/20064972","id":20064972,"diff_hunk":"@@ -453,6 +466,24 @@ public static void GetFunctionToComplete(string code, out string functionName, o\n             functionPrefix = codeParser.functionPrefix;\n         }\n \n+        /// <summary>\n+        /// Parse text to determine if string being typed at caretPos is in \n+        /// the context of a comment or string or character\n+        /// </summary>\n+        /// <param name=\"text\"> input block of code </param>\n+        /// <param name=\"caretPos\"> caret position in text at which to determine context </param>\n+        /// <returns> True if any of above context is true </returns>\n+        public static bool IsInsideCommentOrString(string text, int caretPos)\n+        {\n+            var lexer = new CodeCompletionParser(text);\n+            lexer.ParseContext(caretPos);\n+            return\n+                lexer.IsInSingleComment ||\n+                    lexer.IsInString ||\n+                    lexer.IsInChar ||","path":"src/DynamoCore/Utilities/CodeBlockUtils.cs","position":78,"original_position":78,"commit_id":"b0b2c65e87bbdc309d720662066041fa2588cfa1","original_commit_id":"b0b2c65e87bbdc309d720662066041fa2588cfa1","user":{"login":"aparajit-pratap","id":5710686,"avatar_url":"https://avatars.githubusercontent.com/u/5710686?v=3","gravatar_id":"","url":"https://api.github.com/users/aparajit-pratap","html_url":"https://github.com/aparajit-pratap","followers_url":"https://api.github.com/users/aparajit-pratap/followers","following_url":"https://api.github.com/users/aparajit-pratap/following{/other_user}","gists_url":"https://api.github.com/users/aparajit-pratap/gists{/gist_id}","starred_url":"https://api.github.com/users/aparajit-pratap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aparajit-pratap/subscriptions","organizations_url":"https://api.github.com/users/aparajit-pratap/orgs","repos_url":"https://api.github.com/users/aparajit-pratap/repos","events_url":"https://api.github.com/users/aparajit-pratap/events{/privacy}","received_events_url":"https://api.github.com/users/aparajit-pratap/received_events","type":"User","site_admin":false},"body":"`IsInChar` means that something is being typed after beginning a single quote character like how characters are typed, e.g., 'c'.","created_at":"2014-11-10T02:48:41Z","updated_at":"2014-11-10T02:48:41Z","html_url":"https://github.com/DynamoDS/Dynamo/pull/2992#discussion_r20064972","pull_request_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992","_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/20064972"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/2992#discussion_r20064972"},"pull_request":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992"}}},"pull_request":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992","id":23976217,"html_url":"https://github.com/DynamoDS/Dynamo/pull/2992","diff_url":"https://github.com/DynamoDS/Dynamo/pull/2992.diff","patch_url":"https://github.com/DynamoDS/Dynamo/pull/2992.patch","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/2992","number":2992,"state":"open","locked":false,"title":"Disabling autocomplete in string and comment contexts","user":{"login":"aparajit-pratap","id":5710686,"avatar_url":"https://avatars.githubusercontent.com/u/5710686?v=3","gravatar_id":"","url":"https://api.github.com/users/aparajit-pratap","html_url":"https://github.com/aparajit-pratap","followers_url":"https://api.github.com/users/aparajit-pratap/followers","following_url":"https://api.github.com/users/aparajit-pratap/following{/other_user}","gists_url":"https://api.github.com/users/aparajit-pratap/gists{/gist_id}","starred_url":"https://api.github.com/users/aparajit-pratap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aparajit-pratap/subscriptions","organizations_url":"https://api.github.com/users/aparajit-pratap/orgs","repos_url":"https://api.github.com/users/aparajit-pratap/repos","events_url":"https://api.github.com/users/aparajit-pratap/events{/privacy}","received_events_url":"https://api.github.com/users/aparajit-pratap/received_events","type":"User","site_admin":false},"body":"Fix for MAGN-5099: http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-5099\r\n\r\nThis refers to issue: https://github.com/DynamoDS/Dynamo/issues/2942\r\n\r\n@Benglin please review","created_at":"2014-11-06T12:10:44Z","updated_at":"2014-11-10T02:48:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45a4bfcf3f90d78faedc8c03a8a886d104fe07f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992/commits","review_comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992/comments","review_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/2992/comments","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/b0b2c65e87bbdc309d720662066041fa2588cfa1","head":{"label":"aparajit-pratap:contextualCompletion","ref":"contextualCompletion","sha":"b0b2c65e87bbdc309d720662066041fa2588cfa1","user":{"login":"aparajit-pratap","id":5710686,"avatar_url":"https://avatars.githubusercontent.com/u/5710686?v=3","gravatar_id":"","url":"https://api.github.com/users/aparajit-pratap","html_url":"https://github.com/aparajit-pratap","followers_url":"https://api.github.com/users/aparajit-pratap/followers","following_url":"https://api.github.com/users/aparajit-pratap/following{/other_user}","gists_url":"https://api.github.com/users/aparajit-pratap/gists{/gist_id}","starred_url":"https://api.github.com/users/aparajit-pratap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aparajit-pratap/subscriptions","organizations_url":"https://api.github.com/users/aparajit-pratap/orgs","repos_url":"https://api.github.com/users/aparajit-pratap/repos","events_url":"https://api.github.com/users/aparajit-pratap/events{/privacy}","received_events_url":"https://api.github.com/users/aparajit-pratap/received_events","type":"User","site_admin":false},"repo":{"id":15271868,"name":"Dynamo","full_name":"aparajit-pratap/Dynamo","owner":{"login":"aparajit-pratap","id":5710686,"avatar_url":"https://avatars.githubusercontent.com/u/5710686?v=3","gravatar_id":"","url":"https://api.github.com/users/aparajit-pratap","html_url":"https://github.com/aparajit-pratap","followers_url":"https://api.github.com/users/aparajit-pratap/followers","following_url":"https://api.github.com/users/aparajit-pratap/following{/other_user}","gists_url":"https://api.github.com/users/aparajit-pratap/gists{/gist_id}","starred_url":"https://api.github.com/users/aparajit-pratap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aparajit-pratap/subscriptions","organizations_url":"https://api.github.com/users/aparajit-pratap/orgs","repos_url":"https://api.github.com/users/aparajit-pratap/repos","events_url":"https://api.github.com/users/aparajit-pratap/events{/privacy}","received_events_url":"https://api.github.com/users/aparajit-pratap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aparajit-pratap/Dynamo","description":"Visual Programming For Revit","fork":true,"url":"https://api.github.com/repos/aparajit-pratap/Dynamo","forks_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/forks","keys_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/teams","hooks_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/events","assignees_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/tags","blobs_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/languages","stargazers_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/subscription","commits_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/issues/comments/{number}","contents_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/merges","archive_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/downloads","issues_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/releases{/id}","created_at":"2013-12-18T02:34:41Z","updated_at":"2014-06-25T09:56:58Z","pushed_at":"2014-11-10T02:21:57Z","git_url":"git://github.com/aparajit-pratap/Dynamo.git","ssh_url":"git@github.com:aparajit-pratap/Dynamo.git","clone_url":"https://github.com/aparajit-pratap/Dynamo.git","svn_url":"https://github.com/aparajit-pratap/Dynamo","homepage":"http://dynamobim.org","size":757660,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DynamoDS:master","ref":"master","sha":"eab48d6cc7a12e3c2e3c14c347190702905f5ebd","user":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"repo":{"id":3395179,"name":"Dynamo","full_name":"DynamoDS/Dynamo","owner":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DynamoDS/Dynamo","description":"Visual Programming For Revit","fork":false,"url":"https://api.github.com/repos/DynamoDS/Dynamo","forks_url":"https://api.github.com/repos/DynamoDS/Dynamo/forks","keys_url":"https://api.github.com/repos/DynamoDS/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DynamoDS/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DynamoDS/Dynamo/teams","hooks_url":"https://api.github.com/repos/DynamoDS/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/events","assignees_url":"https://api.github.com/repos/DynamoDS/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/DynamoDS/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/tags","blobs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/DynamoDS/Dynamo/languages","stargazers_url":"https://api.github.com/repos/DynamoDS/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/DynamoDS/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscription","commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments/{number}","contents_url":"https://api.github.com/repos/DynamoDS/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/DynamoDS/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DynamoDS/Dynamo/merges","archive_url":"https://api.github.com/repos/DynamoDS/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DynamoDS/Dynamo/downloads","issues_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/DynamoDS/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/DynamoDS/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/DynamoDS/Dynamo/releases{/id}","created_at":"2012-02-09T07:35:33Z","updated_at":"2014-11-10T01:21:47Z","pushed_at":"2014-11-10T02:37:36Z","git_url":"git://github.com/DynamoDS/Dynamo.git","ssh_url":"git@github.com:DynamoDS/Dynamo.git","clone_url":"https://github.com/DynamoDS/Dynamo.git","svn_url":"https://github.com/DynamoDS/Dynamo","homepage":"http://dynamobim.org","size":823314,"stargazers_count":159,"watchers_count":159,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":116,"mirror_url":null,"open_issues_count":438,"forks":116,"open_issues":438,"watchers":159,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/2992"},"issue":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/2992"},"comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/2992/comments"},"review_comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992/comments"},"review_comment":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/2992/commits"},"statuses":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/b0b2c65e87bbdc309d720662066041fa2588cfa1"}}}}