{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments/209311785","pull_request_review_id":145305481,"id":209311785,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTMxMTc4NQ==","diff_hunk":"@@ -466,6 +469,71 @@ RequestContext<object> requestContext\n             await requestContext.SendResult(result.First().ToString());\n         }\n \n+        private async Task HandleGetAllCommandsRequest(\n+            object param,\n+            RequestContext<object> requestContext)\n+        {\n+            var psCommand = new PSCommand();\n+            psCommand.AddScript(\"Get-Command -CommandType Function, Cmdlet, ExternalScript | Select-Object Name,ModuleName | Sort-Object Name\");\n+            Logger.Write(LogLevel.Verbose, $\"Calling {psCommand.Commands}\");\n+            Stopwatch stopwatch = new Stopwatch();","path":"src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs","position":28,"original_position":28,"commit_id":"35adc04b6b99d6b684a7852bc8ddf3a7777b9a1c","original_commit_id":"35adc04b6b99d6b684a7852bc8ddf3a7777b9a1c","user":{"login":"rjmholt","id":7009879,"node_id":"MDQ6VXNlcjcwMDk4Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/7009879?v=4","gravatar_id":"","url":"https://api.github.com/users/rjmholt","html_url":"https://github.com/rjmholt","followers_url":"https://api.github.com/users/rjmholt/followers","following_url":"https://api.github.com/users/rjmholt/following{/other_user}","gists_url":"https://api.github.com/users/rjmholt/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmholt/subscriptions","organizations_url":"https://api.github.com/users/rjmholt/orgs","repos_url":"https://api.github.com/users/rjmholt/repos","events_url":"https://api.github.com/users/rjmholt/events{/privacy}","received_events_url":"https://api.github.com/users/rjmholt/received_events","type":"User","site_admin":false},"body":"Note for later:\r\n\r\nI've seen this pattern a few times in the code base. Maybe we could abuse an `IDisposable` to sugar the syntax to:\r\n```csharp\r\nusing (logger.TimeExecution())\r\n{\r\n    _editorSession.PowerShellContext.ExecuteCommand<PSObject>(psCommand);\r\n}\r\n```","created_at":"2018-08-10T16:14:16Z","updated_at":"2018-08-10T16:45:26Z","html_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/697#discussion_r209311785","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments/209311785"},"html":{"href":"https://github.com/PowerShell/PowerShellEditorServices/pull/697#discussion_r209311785"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697","id":199926717,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTI2NzE3","html_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/697","diff_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/697.diff","patch_url":"https://github.com/PowerShell/PowerShellEditorServices/pull/697.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/697","number":697,"state":"open","locked":false,"title":"Add functionality to allow a Show-Command like panel in VS Code","user":{"login":"corbob","id":30301021,"node_id":"MDQ6VXNlcjMwMzAxMDIx","avatar_url":"https://avatars2.githubusercontent.com/u/30301021?v=4","gravatar_id":"","url":"https://api.github.com/users/corbob","html_url":"https://github.com/corbob","followers_url":"https://api.github.com/users/corbob/followers","following_url":"https://api.github.com/users/corbob/following{/other_user}","gists_url":"https://api.github.com/users/corbob/gists{/gist_id}","starred_url":"https://api.github.com/users/corbob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbob/subscriptions","organizations_url":"https://api.github.com/users/corbob/orgs","repos_url":"https://api.github.com/users/corbob/repos","events_url":"https://api.github.com/users/corbob/events{/privacy}","received_events_url":"https://api.github.com/users/corbob/received_events","type":"User","site_admin":false},"body":"This is changes required to accommodate the functionality of [VS Code Feature Request 1405](https://github.com/PowerShell/vscode-powershell/issues/1405)","created_at":"2018-07-08T05:53:36Z","updated_at":"2018-08-10T16:45:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc549941f3588d53166b2c4a71b142f8430390f5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/697/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/statuses/35adc04b6b99d6b684a7852bc8ddf3a7777b9a1c","head":{"label":"corbob:AddGetCommand","ref":"AddGetCommand","sha":"35adc04b6b99d6b684a7852bc8ddf3a7777b9a1c","user":{"login":"corbob","id":30301021,"node_id":"MDQ6VXNlcjMwMzAxMDIx","avatar_url":"https://avatars2.githubusercontent.com/u/30301021?v=4","gravatar_id":"","url":"https://api.github.com/users/corbob","html_url":"https://github.com/corbob","followers_url":"https://api.github.com/users/corbob/followers","following_url":"https://api.github.com/users/corbob/following{/other_user}","gists_url":"https://api.github.com/users/corbob/gists{/gist_id}","starred_url":"https://api.github.com/users/corbob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbob/subscriptions","organizations_url":"https://api.github.com/users/corbob/orgs","repos_url":"https://api.github.com/users/corbob/repos","events_url":"https://api.github.com/users/corbob/events{/privacy}","received_events_url":"https://api.github.com/users/corbob/received_events","type":"User","site_admin":false},"repo":{"id":139927868,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5Mjc4Njg=","name":"PowerShellEditorServices","full_name":"corbob/PowerShellEditorServices","owner":{"login":"corbob","id":30301021,"node_id":"MDQ6VXNlcjMwMzAxMDIx","avatar_url":"https://avatars2.githubusercontent.com/u/30301021?v=4","gravatar_id":"","url":"https://api.github.com/users/corbob","html_url":"https://github.com/corbob","followers_url":"https://api.github.com/users/corbob/followers","following_url":"https://api.github.com/users/corbob/following{/other_user}","gists_url":"https://api.github.com/users/corbob/gists{/gist_id}","starred_url":"https://api.github.com/users/corbob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbob/subscriptions","organizations_url":"https://api.github.com/users/corbob/orgs","repos_url":"https://api.github.com/users/corbob/repos","events_url":"https://api.github.com/users/corbob/events{/privacy}","received_events_url":"https://api.github.com/users/corbob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/corbob/PowerShellEditorServices","description":"A common platform for PowerShell development support in any editor or application!","fork":true,"url":"https://api.github.com/repos/corbob/PowerShellEditorServices","forks_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/forks","keys_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/teams","hooks_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/hooks","issue_events_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/issues/events{/number}","events_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/events","assignees_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/assignees{/user}","branches_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/branches{/branch}","tags_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/tags","blobs_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/git/refs{/sha}","trees_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/statuses/{sha}","languages_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/languages","stargazers_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/stargazers","contributors_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/contributors","subscribers_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/subscribers","subscription_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/subscription","commits_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/commits{/sha}","git_commits_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/git/commits{/sha}","comments_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/comments{/number}","issue_comment_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/issues/comments{/number}","contents_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/contents/{+path}","compare_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/merges","archive_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/downloads","issues_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/issues{/number}","pulls_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/pulls{/number}","milestones_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/milestones{/number}","notifications_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/labels{/name}","releases_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/releases{/id}","deployments_url":"https://api.github.com/repos/corbob/PowerShellEditorServices/deployments","created_at":"2018-07-06T03:19:27Z","updated_at":"2018-08-10T02:26:20Z","pushed_at":"2018-08-10T14:10:12Z","git_url":"git://github.com/corbob/PowerShellEditorServices.git","ssh_url":"git@github.com:corbob/PowerShellEditorServices.git","clone_url":"https://github.com/corbob/PowerShellEditorServices.git","svn_url":"https://github.com/corbob/PowerShellEditorServices","homepage":"","size":3662,"stargazers_count":0,"watchers_count":0,"language":"C#","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PowerShell:master","ref":"master","sha":"bd400a87a98d31d909e63bb99a87f52cd0abce7b","user":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":36031537,"node_id":"MDEwOlJlcG9zaXRvcnkzNjAzMTUzNw==","name":"PowerShellEditorServices","full_name":"PowerShell/PowerShellEditorServices","owner":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/PowerShellEditorServices","description":"A common platform for PowerShell development support in any editor or application!","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices","forks_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/deployments","created_at":"2015-05-21T18:54:08Z","updated_at":"2018-08-10T13:34:12Z","pushed_at":"2018-08-10T14:17:36Z","git_url":"git://github.com/PowerShell/PowerShellEditorServices.git","ssh_url":"git@github.com:PowerShell/PowerShellEditorServices.git","clone_url":"https://github.com/PowerShell/PowerShellEditorServices.git","svn_url":"https://github.com/PowerShell/PowerShellEditorServices","homepage":"","size":3642,"stargazers_count":242,"watchers_count":242,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":65,"mirror_url":null,"archived":false,"open_issues_count":126,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":65,"open_issues":126,"watchers":242,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697"},"html":{"href":"https://github.com/PowerShell/PowerShellEditorServices/pull/697"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/697"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/issues/697/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/pulls/697/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShellEditorServices/statuses/35adc04b6b99d6b684a7852bc8ddf3a7777b9a1c"}},"author_association":"NONE"}}
{"actor":{"display_login":"rjmholt"}}