{"action":"created","comment":{"url":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/comments/244564599","pull_request_review_id":188472761,"id":244564599,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDU2NDU5OQ==","diff_hunk":"@@ -8,82 +8,89 @@ import * as path from 'path';\n export function activate(context: vscode.ExtensionContext) {\r\n \t// Use the console to output diagnostic information (console.log) and errors (console.error)\r\n \t// This line of code will only be executed once when your extension is activated\r\n-\tconsole.log('\"switch-corresponding\" now active');\r\n+\t// console.log('\"switch-corresponding\" now active');\r\n+\r\n+\tconst enum ESwitchMode {\r","path":"src/extension.ts","position":7,"original_position":7,"commit_id":"c0540d845c425582f0d44f2cc1f9e6ec6ed8ab7d","original_commit_id":"c0540d845c425582f0d44f2cc1f9e6ec6ed8ab7d","user":{"login":"zabel-xyz","id":16486407,"node_id":"MDQ6VXNlcjE2NDg2NDA3","avatar_url":"https://avatars2.githubusercontent.com/u/16486407?v=4","gravatar_id":"","url":"https://api.github.com/users/zabel-xyz","html_url":"https://github.com/zabel-xyz","followers_url":"https://api.github.com/users/zabel-xyz/followers","following_url":"https://api.github.com/users/zabel-xyz/following{/other_user}","gists_url":"https://api.github.com/users/zabel-xyz/gists{/gist_id}","starred_url":"https://api.github.com/users/zabel-xyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabel-xyz/subscriptions","organizations_url":"https://api.github.com/users/zabel-xyz/orgs","repos_url":"https://api.github.com/users/zabel-xyz/repos","events_url":"https://api.github.com/users/zabel-xyz/events{/privacy}","received_events_url":"https://api.github.com/users/zabel-xyz/received_events","type":"User","site_admin":false},"body":"You can drop the E prefix if you will. (an old habit I use in another language...)\r\nFor the comments, I think the name is clear enough, but if you want to add something...","created_at":"2018-12-31T09:00:41Z","updated_at":"2018-12-31T09:00:41Z","html_url":"https://github.com/pr0g/switch-corresponding/pull/10#discussion_r244564599","pull_request_url":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/comments/244564599"},"html":{"href":"https://github.com/pr0g/switch-corresponding/pull/10#discussion_r244564599"},"pull_request":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10"}},"in_reply_to_id":244546073},"pull_request":{"url":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10","id":241486524,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNDg2NTI0","html_url":"https://github.com/pr0g/switch-corresponding/pull/10","diff_url":"https://github.com/pr0g/switch-corresponding/pull/10.diff","patch_url":"https://github.com/pr0g/switch-corresponding/pull/10.patch","issue_url":"https://api.github.com/repos/pr0g/switch-corresponding/issues/10","number":10,"state":"open","locked":false,"title":"Support for multi-root workspaces","user":{"login":"zabel-xyz","id":16486407,"node_id":"MDQ6VXNlcjE2NDg2NDA3","avatar_url":"https://avatars2.githubusercontent.com/u/16486407?v=4","gravatar_id":"","url":"https://api.github.com/users/zabel-xyz","html_url":"https://github.com/zabel-xyz","followers_url":"https://api.github.com/users/zabel-xyz/followers","following_url":"https://api.github.com/users/zabel-xyz/following{/other_user}","gists_url":"https://api.github.com/users/zabel-xyz/gists{/gist_id}","starred_url":"https://api.github.com/users/zabel-xyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabel-xyz/subscriptions","organizations_url":"https://api.github.com/users/zabel-xyz/orgs","repos_url":"https://api.github.com/users/zabel-xyz/repos","events_url":"https://api.github.com/users/zabel-xyz/events{/privacy}","received_events_url":"https://api.github.com/users/zabel-xyz/received_events","type":"User","site_admin":false},"body":"Hello Tom,\r\n\r\nI changed a lot of code in order to support new features, especially multi-root workspaces.\r\n(In multi-root workspaces, this extension didn't work anymore)\r\n\r\nCommands:\r\n**extension.switch_corresponding**: no-limit, switch inside all workspaces\r\n**extension.switch_corresponding_same_dir**: limit switch inside same directory\r\n**_(new)_ extension.switch_corresponding_same_workspace**: limit switch inside same workspace\r\n\r\nI added some files to test, (see test/files)\r\nIn launch.json, the file to load is specify in args. (Alternatives in comment)\r\n","created_at":"2018-12-30T11:23:20Z","updated_at":"2018-12-31T09:00:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22b22d2bd71daf57cc62aa6eee3358404ca98c32","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10/commits","review_comments_url":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10/comments","review_comment_url":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pr0g/switch-corresponding/issues/10/comments","statuses_url":"https://api.github.com/repos/pr0g/switch-corresponding/statuses/c0540d845c425582f0d44f2cc1f9e6ec6ed8ab7d","head":{"label":"zabel-xyz:multi-workspace","ref":"multi-workspace","sha":"c0540d845c425582f0d44f2cc1f9e6ec6ed8ab7d","user":{"login":"zabel-xyz","id":16486407,"node_id":"MDQ6VXNlcjE2NDg2NDA3","avatar_url":"https://avatars2.githubusercontent.com/u/16486407?v=4","gravatar_id":"","url":"https://api.github.com/users/zabel-xyz","html_url":"https://github.com/zabel-xyz","followers_url":"https://api.github.com/users/zabel-xyz/followers","following_url":"https://api.github.com/users/zabel-xyz/following{/other_user}","gists_url":"https://api.github.com/users/zabel-xyz/gists{/gist_id}","starred_url":"https://api.github.com/users/zabel-xyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabel-xyz/subscriptions","organizations_url":"https://api.github.com/users/zabel-xyz/orgs","repos_url":"https://api.github.com/users/zabel-xyz/repos","events_url":"https://api.github.com/users/zabel-xyz/events{/privacy}","received_events_url":"https://api.github.com/users/zabel-xyz/received_events","type":"User","site_admin":false},"repo":{"id":163579684,"node_id":"MDEwOlJlcG9zaXRvcnkxNjM1Nzk2ODQ=","name":"switch-corresponding","full_name":"zabel-xyz/switch-corresponding","private":false,"owner":{"login":"zabel-xyz","id":16486407,"node_id":"MDQ6VXNlcjE2NDg2NDA3","avatar_url":"https://avatars2.githubusercontent.com/u/16486407?v=4","gravatar_id":"","url":"https://api.github.com/users/zabel-xyz","html_url":"https://github.com/zabel-xyz","followers_url":"https://api.github.com/users/zabel-xyz/followers","following_url":"https://api.github.com/users/zabel-xyz/following{/other_user}","gists_url":"https://api.github.com/users/zabel-xyz/gists{/gist_id}","starred_url":"https://api.github.com/users/zabel-xyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabel-xyz/subscriptions","organizations_url":"https://api.github.com/users/zabel-xyz/orgs","repos_url":"https://api.github.com/users/zabel-xyz/repos","events_url":"https://api.github.com/users/zabel-xyz/events{/privacy}","received_events_url":"https://api.github.com/users/zabel-xyz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/zabel-xyz/switch-corresponding","description":"Extension for VSCode to switch between interface and implementation file (.h/cpp and .m etc)","fork":true,"url":"https://api.github.com/repos/zabel-xyz/switch-corresponding","forks_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/forks","keys_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/teams","hooks_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/hooks","issue_events_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/issues/events{/number}","events_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/events","assignees_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/assignees{/user}","branches_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/branches{/branch}","tags_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/tags","blobs_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/git/refs{/sha}","trees_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/statuses/{sha}","languages_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/languages","stargazers_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/stargazers","contributors_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/contributors","subscribers_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/subscribers","subscription_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/subscription","commits_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/commits{/sha}","git_commits_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/git/commits{/sha}","comments_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/comments{/number}","issue_comment_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/issues/comments{/number}","contents_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/contents/{+path}","compare_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/merges","archive_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/downloads","issues_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/issues{/number}","pulls_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/pulls{/number}","milestones_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/milestones{/number}","notifications_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/labels{/name}","releases_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/releases{/id}","deployments_url":"https://api.github.com/repos/zabel-xyz/switch-corresponding/deployments","created_at":"2018-12-30T10:40:10Z","updated_at":"2018-12-30T10:40:12Z","pushed_at":"2018-12-30T10:52:35Z","git_url":"git://github.com/zabel-xyz/switch-corresponding.git","ssh_url":"git@github.com:zabel-xyz/switch-corresponding.git","clone_url":"https://github.com/zabel-xyz/switch-corresponding.git","svn_url":"https://github.com/zabel-xyz/switch-corresponding","homepage":"","size":2134,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pr0g:master","ref":"master","sha":"8edcccf20914bfb5fb12daf1e527ce836f034947","user":{"login":"pr0g","id":1136625,"node_id":"MDQ6VXNlcjExMzY2MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1136625?v=4","gravatar_id":"","url":"https://api.github.com/users/pr0g","html_url":"https://github.com/pr0g","followers_url":"https://api.github.com/users/pr0g/followers","following_url":"https://api.github.com/users/pr0g/following{/other_user}","gists_url":"https://api.github.com/users/pr0g/gists{/gist_id}","starred_url":"https://api.github.com/users/pr0g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr0g/subscriptions","organizations_url":"https://api.github.com/users/pr0g/orgs","repos_url":"https://api.github.com/users/pr0g/repos","events_url":"https://api.github.com/users/pr0g/events{/privacy}","received_events_url":"https://api.github.com/users/pr0g/received_events","type":"User","site_admin":false},"repo":{"id":48610134,"node_id":"MDEwOlJlcG9zaXRvcnk0ODYxMDEzNA==","name":"switch-corresponding","full_name":"pr0g/switch-corresponding","private":false,"owner":{"login":"pr0g","id":1136625,"node_id":"MDQ6VXNlcjExMzY2MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1136625?v=4","gravatar_id":"","url":"https://api.github.com/users/pr0g","html_url":"https://github.com/pr0g","followers_url":"https://api.github.com/users/pr0g/followers","following_url":"https://api.github.com/users/pr0g/following{/other_user}","gists_url":"https://api.github.com/users/pr0g/gists{/gist_id}","starred_url":"https://api.github.com/users/pr0g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr0g/subscriptions","organizations_url":"https://api.github.com/users/pr0g/orgs","repos_url":"https://api.github.com/users/pr0g/repos","events_url":"https://api.github.com/users/pr0g/events{/privacy}","received_events_url":"https://api.github.com/users/pr0g/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pr0g/switch-corresponding","description":"Extension for VSCode to switch between interface and implementation file (.h/cpp and .m etc)","fork":false,"url":"https://api.github.com/repos/pr0g/switch-corresponding","forks_url":"https://api.github.com/repos/pr0g/switch-corresponding/forks","keys_url":"https://api.github.com/repos/pr0g/switch-corresponding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pr0g/switch-corresponding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pr0g/switch-corresponding/teams","hooks_url":"https://api.github.com/repos/pr0g/switch-corresponding/hooks","issue_events_url":"https://api.github.com/repos/pr0g/switch-corresponding/issues/events{/number}","events_url":"https://api.github.com/repos/pr0g/switch-corresponding/events","assignees_url":"https://api.github.com/repos/pr0g/switch-corresponding/assignees{/user}","branches_url":"https://api.github.com/repos/pr0g/switch-corresponding/branches{/branch}","tags_url":"https://api.github.com/repos/pr0g/switch-corresponding/tags","blobs_url":"https://api.github.com/repos/pr0g/switch-corresponding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pr0g/switch-corresponding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pr0g/switch-corresponding/git/refs{/sha}","trees_url":"https://api.github.com/repos/pr0g/switch-corresponding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pr0g/switch-corresponding/statuses/{sha}","languages_url":"https://api.github.com/repos/pr0g/switch-corresponding/languages","stargazers_url":"https://api.github.com/repos/pr0g/switch-corresponding/stargazers","contributors_url":"https://api.github.com/repos/pr0g/switch-corresponding/contributors","subscribers_url":"https://api.github.com/repos/pr0g/switch-corresponding/subscribers","subscription_url":"https://api.github.com/repos/pr0g/switch-corresponding/subscription","commits_url":"https://api.github.com/repos/pr0g/switch-corresponding/commits{/sha}","git_commits_url":"https://api.github.com/repos/pr0g/switch-corresponding/git/commits{/sha}","comments_url":"https://api.github.com/repos/pr0g/switch-corresponding/comments{/number}","issue_comment_url":"https://api.github.com/repos/pr0g/switch-corresponding/issues/comments{/number}","contents_url":"https://api.github.com/repos/pr0g/switch-corresponding/contents/{+path}","compare_url":"https://api.github.com/repos/pr0g/switch-corresponding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pr0g/switch-corresponding/merges","archive_url":"https://api.github.com/repos/pr0g/switch-corresponding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pr0g/switch-corresponding/downloads","issues_url":"https://api.github.com/repos/pr0g/switch-corresponding/issues{/number}","pulls_url":"https://api.github.com/repos/pr0g/switch-corresponding/pulls{/number}","milestones_url":"https://api.github.com/repos/pr0g/switch-corresponding/milestones{/number}","notifications_url":"https://api.github.com/repos/pr0g/switch-corresponding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pr0g/switch-corresponding/labels{/name}","releases_url":"https://api.github.com/repos/pr0g/switch-corresponding/releases{/id}","deployments_url":"https://api.github.com/repos/pr0g/switch-corresponding/deployments","created_at":"2015-12-26T12:38:44Z","updated_at":"2017-05-25T09:49:44Z","pushed_at":"2018-12-30T11:23:21Z","git_url":"git://github.com/pr0g/switch-corresponding.git","ssh_url":"git@github.com:pr0g/switch-corresponding.git","clone_url":"https://github.com/pr0g/switch-corresponding.git","svn_url":"https://github.com/pr0g/switch-corresponding","homepage":"","size":2132,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10"},"html":{"href":"https://github.com/pr0g/switch-corresponding/pull/10"},"issue":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/issues/10"},"comments":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/pr0g/switch-corresponding/statuses/c0540d845c425582f0d44f2cc1f9e6ec6ed8ab7d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zabel-xyz"}}