{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/25544238","id":25544238,"diff_hunk":"@@ -41,19 +38,31 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.TextStructureNavigation\n                     Return True\n \n                 Case SyntaxKind.CharacterLiteralToken\n-\n-                    ' Before the ' is considered outside the character\n+                    ' Before the opening quote is considered outside the character\n                     If position = token.SpanStart Then\n                         Return False\n                     End If\n \n                     Return True\n \n-                Case SyntaxKind.XmlTextLiteralToken\n+                Case SyntaxKind.InterpolatedStringTextToken,\n+                     SyntaxKind.XmlTextLiteralToken\n                     Return True\n             End Select\n \n             Return False\n         End Function\n+\n+        Protected Overrides Function GetExtentOfWordFromToken(token As SyntaxToken, position As SnapshotPoint) As TextExtent\n+            If token.Kind() = SyntaxKind.StringLiteralToken AndAlso position.Position = token.Span.End - 1 Then\n+                ' Special case to treat the closing quote of a string literal as a separate token.  This allows the\n+                ' cursor to stop during word navigation (Ctrl+LeftArrow, etc.) immediately before AND after the\n+                ' closing quote, just like it did in VS2013 and like it currently does for interpolated strings.\n+                Dim Span = New Span(position.Position, 1)\n+                Return New TextExtent(New SnapshotSpan(position.Snapshot, Span), isSignificant:=True)\n+            Else\n+                Return MyBase.GetExtentOfWordFromToken(token, position)","path":"src/EditorFeatures/VisualBasic/TextStructureNavigation/TextStructureNavigatorProvider.vb","position":53,"original_position":53,"commit_id":"b987a4c6f50d4a84473d84918e0d0693669d6ba3","original_commit_id":"b987a4c6f50d4a84473d84918e0d0693669d6ba3","user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"body":"Since `(C#)SyntaxKind.StringLiteralToken != (VB)SyntaxKind.StringLiteralToken` I didn't see a clean way of doing this so I opted to keep them separate, but I could certainly be talked either way.","created_at":"2015-02-27T22:28:07Z","updated_at":"2015-02-27T22:28:07Z","html_url":"https://github.com/dotnet/roslyn/pull/945#discussion_r25544238","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/945","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/25544238"},"html":{"href":"https://github.com/dotnet/roslyn/pull/945#discussion_r25544238"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/945"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/945","id":30204804,"html_url":"https://github.com/dotnet/roslyn/pull/945","diff_url":"https://github.com/dotnet/roslyn/pull/945.diff","patch_url":"https://github.com/dotnet/roslyn/pull/945.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/945","number":945,"state":"open","locked":false,"title":"correct text navigation in VB and C# strings","user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"body":"Correct text navigation in VB and C# strings to match that of the old language service (i.e., VS 2013.)  Now when navigating inside of strings with Ctrl+LeftArrow, RightArrow the cursor will move on word/token boundaries and Ctrl+Delete, Backspace behave appropriately as well as double-click word selection.\r\n\r\nFixes #551.","created_at":"2015-02-27T21:59:30Z","updated_at":"2015-02-27T22:28:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/945/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/945/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/945/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/b987a4c6f50d4a84473d84918e0d0693669d6ba3","head":{"label":"brettfo:vb-string-navigation","ref":"vb-string-navigation","sha":"b987a4c6f50d4a84473d84918e0d0693669d6ba3","user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"repo":{"id":30557497,"name":"roslyn","full_name":"brettfo/roslyn","owner":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brettfo/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":true,"url":"https://api.github.com/repos/brettfo/roslyn","forks_url":"https://api.github.com/repos/brettfo/roslyn/forks","keys_url":"https://api.github.com/repos/brettfo/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brettfo/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brettfo/roslyn/teams","hooks_url":"https://api.github.com/repos/brettfo/roslyn/hooks","issue_events_url":"https://api.github.com/repos/brettfo/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/brettfo/roslyn/events","assignees_url":"https://api.github.com/repos/brettfo/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/brettfo/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/brettfo/roslyn/tags","blobs_url":"https://api.github.com/repos/brettfo/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brettfo/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brettfo/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/brettfo/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brettfo/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/brettfo/roslyn/languages","stargazers_url":"https://api.github.com/repos/brettfo/roslyn/stargazers","contributors_url":"https://api.github.com/repos/brettfo/roslyn/contributors","subscribers_url":"https://api.github.com/repos/brettfo/roslyn/subscribers","subscription_url":"https://api.github.com/repos/brettfo/roslyn/subscription","commits_url":"https://api.github.com/repos/brettfo/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/brettfo/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/brettfo/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/brettfo/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/brettfo/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/brettfo/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brettfo/roslyn/merges","archive_url":"https://api.github.com/repos/brettfo/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brettfo/roslyn/downloads","issues_url":"https://api.github.com/repos/brettfo/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/brettfo/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/brettfo/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/brettfo/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brettfo/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/brettfo/roslyn/releases{/id}","created_at":"2015-02-09T20:43:48Z","updated_at":"2015-02-27T22:11:15Z","pushed_at":"2015-02-27T22:11:13Z","git_url":"git://github.com/brettfo/roslyn.git","ssh_url":"git@github.com:brettfo/roslyn.git","clone_url":"https://github.com/brettfo/roslyn.git","svn_url":"https://github.com/brettfo/roslyn","homepage":"","size":52477,"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":"dotnet:master","ref":"master","sha":"1752a4ed6666d977b5f024734b6de6f2839fc411","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":29078997,"name":"roslyn","full_name":"dotnet/roslyn","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":false,"url":"https://api.github.com/repos/dotnet/roslyn","forks_url":"https://api.github.com/repos/dotnet/roslyn/forks","keys_url":"https://api.github.com/repos/dotnet/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/roslyn/teams","hooks_url":"https://api.github.com/repos/dotnet/roslyn/hooks","issue_events_url":"https://api.github.com/repos/dotnet/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/roslyn/events","assignees_url":"https://api.github.com/repos/dotnet/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/roslyn/tags","blobs_url":"https://api.github.com/repos/dotnet/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/roslyn/languages","stargazers_url":"https://api.github.com/repos/dotnet/roslyn/stargazers","contributors_url":"https://api.github.com/repos/dotnet/roslyn/contributors","subscribers_url":"https://api.github.com/repos/dotnet/roslyn/subscribers","subscription_url":"https://api.github.com/repos/dotnet/roslyn/subscription","commits_url":"https://api.github.com/repos/dotnet/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/roslyn/merges","archive_url":"https://api.github.com/repos/dotnet/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/roslyn/downloads","issues_url":"https://api.github.com/repos/dotnet/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/roslyn/releases{/id}","created_at":"2015-01-11T02:39:03Z","updated_at":"2015-02-27T22:19:27Z","pushed_at":"2015-02-27T22:06:47Z","git_url":"git://github.com/dotnet/roslyn.git","ssh_url":"git@github.com:dotnet/roslyn.git","clone_url":"https://github.com/dotnet/roslyn.git","svn_url":"https://github.com/dotnet/roslyn","homepage":"","size":76196,"stargazers_count":1330,"watchers_count":1330,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":261,"mirror_url":null,"open_issues_count":498,"forks":261,"open_issues":498,"watchers":1330,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/945"},"html":{"href":"https://github.com/dotnet/roslyn/pull/945"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/945"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/945/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/945/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/945/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/b987a4c6f50d4a84473d84918e0d0693669d6ba3"}}}}