{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/comments/60600377","id":60600377,"diff_hunk":"@@ -74,7 +74,8 @@ public static class Commands {\n             if (!tb.AcceptsReturn) {\n                 var path = e.Parameter as string ?? tb.GetValue(TextBox.TextProperty) as string;\n                 while (!string.IsNullOrEmpty(path) && !Directory.Exists(path)) {\n-                    path = Path.GetDirectoryName(path);\n+                    try { path = Path.GetDirectoryName(path); }\n+                    catch { path = null; }  // path was in incorrect format, continue with default (current) directory","path":"Product/SharedProject/Wpf/Commands.cs","position":6,"original_position":6,"commit_id":"b9c5169e0f52be4fae4f0eff76971212e3fed1d3","original_commit_id":"b9c5169e0f52be4fae4f0eff76971212e3fed1d3","user":{"login":"zooba","id":1693688,"avatar_url":"https://avatars.githubusercontent.com/u/1693688?v=3","gravatar_id":"","url":"https://api.github.com/users/zooba","html_url":"https://github.com/zooba","followers_url":"https://api.github.com/users/zooba/followers","following_url":"https://api.github.com/users/zooba/following{/other_user}","gists_url":"https://api.github.com/users/zooba/gists{/gist_id}","starred_url":"https://api.github.com/users/zooba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooba/subscriptions","organizations_url":"https://api.github.com/users/zooba/orgs","repos_url":"https://api.github.com/users/zooba/repos","events_url":"https://api.github.com/users/zooba/events{/privacy}","received_events_url":"https://api.github.com/users/zooba/received_events","type":"User","site_admin":false},"body":"Can we make this catch `ArgumentException` and `IOException` only? (`IOException` covers the potential `PathTooLongException`, which we could also specify directly, but the docs suggest using the base class on some platforms so it may be more future-proof).\r\n\r\nAlso, feel free to add newlines within the blocks. Plenty of vertical space to go around :)","created_at":"2016-04-21T15:21:29Z","updated_at":"2016-04-21T15:21:29Z","html_url":"https://github.com/Microsoft/VisualStudio-SharedProject/pull/23#discussion_r60600377","pull_request_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/comments/60600377"},"html":{"href":"https://github.com/Microsoft/VisualStudio-SharedProject/pull/23#discussion_r60600377"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23","id":67340313,"html_url":"https://github.com/Microsoft/VisualStudio-SharedProject/pull/23","diff_url":"https://github.com/Microsoft/VisualStudio-SharedProject/pull/23.diff","patch_url":"https://github.com/Microsoft/VisualStudio-SharedProject/pull/23.patch","issue_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/issues/23","number":23,"state":"open","locked":false,"title":"Fix of BrowseFolderExecute","user":{"login":"jakubmisek","id":842150,"avatar_url":"https://avatars.githubusercontent.com/u/842150?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubmisek","html_url":"https://github.com/jakubmisek","followers_url":"https://api.github.com/users/jakubmisek/followers","following_url":"https://api.github.com/users/jakubmisek/following{/other_user}","gists_url":"https://api.github.com/users/jakubmisek/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubmisek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubmisek/subscriptions","organizations_url":"https://api.github.com/users/jakubmisek/orgs","repos_url":"https://api.github.com/users/jakubmisek/repos","events_url":"https://api.github.com/users/jakubmisek/events{/privacy}","received_events_url":"https://api.github.com/users/jakubmisek/received_events","type":"User","site_admin":false},"body":"- when source value is already in incorrect format, continue the Browse Dialog with default directory","created_at":"2016-04-21T11:46:46Z","updated_at":"2016-04-21T15:21:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8efb7aa718b8a0cb82d60f156ed0b8e57d57114","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/issues/23/comments","statuses_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/statuses/b9c5169e0f52be4fae4f0eff76971212e3fed1d3","head":{"label":"jakubmisek:patch-1","ref":"patch-1","sha":"b9c5169e0f52be4fae4f0eff76971212e3fed1d3","user":{"login":"jakubmisek","id":842150,"avatar_url":"https://avatars.githubusercontent.com/u/842150?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubmisek","html_url":"https://github.com/jakubmisek","followers_url":"https://api.github.com/users/jakubmisek/followers","following_url":"https://api.github.com/users/jakubmisek/following{/other_user}","gists_url":"https://api.github.com/users/jakubmisek/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubmisek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubmisek/subscriptions","organizations_url":"https://api.github.com/users/jakubmisek/orgs","repos_url":"https://api.github.com/users/jakubmisek/repos","events_url":"https://api.github.com/users/jakubmisek/events{/privacy}","received_events_url":"https://api.github.com/users/jakubmisek/received_events","type":"User","site_admin":false},"repo":{"id":56769107,"name":"VisualStudio-SharedProject","full_name":"jakubmisek/VisualStudio-SharedProject","owner":{"login":"jakubmisek","id":842150,"avatar_url":"https://avatars.githubusercontent.com/u/842150?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubmisek","html_url":"https://github.com/jakubmisek","followers_url":"https://api.github.com/users/jakubmisek/followers","following_url":"https://api.github.com/users/jakubmisek/following{/other_user}","gists_url":"https://api.github.com/users/jakubmisek/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubmisek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubmisek/subscriptions","organizations_url":"https://api.github.com/users/jakubmisek/orgs","repos_url":"https://api.github.com/users/jakubmisek/repos","events_url":"https://api.github.com/users/jakubmisek/events{/privacy}","received_events_url":"https://api.github.com/users/jakubmisek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jakubmisek/VisualStudio-SharedProject","description":"Project system used by PTVS, NTVS, and other free extensions for Visual Studio.","fork":true,"url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject","forks_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/forks","keys_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/teams","hooks_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/hooks","issue_events_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/issues/events{/number}","events_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/events","assignees_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/assignees{/user}","branches_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/branches{/branch}","tags_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/tags","blobs_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/statuses/{sha}","languages_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/languages","stargazers_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/stargazers","contributors_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/contributors","subscribers_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/subscribers","subscription_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/subscription","commits_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/contents/{+path}","compare_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/merges","archive_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/downloads","issues_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/issues{/number}","pulls_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/pulls{/number}","milestones_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/milestones{/number}","notifications_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/labels{/name}","releases_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/releases{/id}","deployments_url":"https://api.github.com/repos/jakubmisek/VisualStudio-SharedProject/deployments","created_at":"2016-04-21T11:44:19Z","updated_at":"2016-04-21T11:44:21Z","pushed_at":"2016-04-21T11:46:18Z","git_url":"git://github.com/jakubmisek/VisualStudio-SharedProject.git","ssh_url":"git@github.com:jakubmisek/VisualStudio-SharedProject.git","clone_url":"https://github.com/jakubmisek/VisualStudio-SharedProject.git","svn_url":"https://github.com/jakubmisek/VisualStudio-SharedProject","homepage":"","size":13617,"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":"Microsoft:master","ref":"master","sha":"70ecd6e27b3eeac0e2c1c39aa1476cf91df0abe1","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":36588474,"name":"VisualStudio-SharedProject","full_name":"Microsoft/VisualStudio-SharedProject","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/VisualStudio-SharedProject","description":"Project system used by PTVS, NTVS, and other free extensions for Visual Studio.","fork":false,"url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject","forks_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/forks","keys_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/teams","hooks_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/events","assignees_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/tags","blobs_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/languages","stargazers_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/subscription","commits_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/merges","archive_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/downloads","issues_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/deployments","created_at":"2015-05-31T04:54:00Z","updated_at":"2016-04-01T09:05:40Z","pushed_at":"2016-04-21T11:46:47Z","git_url":"git://github.com/Microsoft/VisualStudio-SharedProject.git","ssh_url":"git@github.com:Microsoft/VisualStudio-SharedProject.git","clone_url":"https://github.com/Microsoft/VisualStudio-SharedProject.git","svn_url":"https://github.com/Microsoft/VisualStudio-SharedProject","homepage":"","size":13647,"stargazers_count":8,"watchers_count":8,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":13,"forks":7,"open_issues":13,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23"},"html":{"href":"https://github.com/Microsoft/VisualStudio-SharedProject/pull/23"},"issue":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/issues/23"},"comments":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/VisualStudio-SharedProject/statuses/b9c5169e0f52be4fae4f0eff76971212e3fed1d3"}}}}