{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/388","repository_url":"https://api.github.com/repos/Microsoft/vscode-go","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/388/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/388/events","html_url":"https://github.com/Microsoft/vscode-go/pull/388","id":165002985,"number":388,"title":"Preserve focus when running tests","user":{"login":"oliverkofoed","id":313632,"avatar_url":"https://avatars.githubusercontent.com/u/313632?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverkofoed","html_url":"https://github.com/oliverkofoed","followers_url":"https://api.github.com/users/oliverkofoed/followers","following_url":"https://api.github.com/users/oliverkofoed/following{/other_user}","gists_url":"https://api.github.com/users/oliverkofoed/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverkofoed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverkofoed/subscriptions","organizations_url":"https://api.github.com/users/oliverkofoed/orgs","repos_url":"https://api.github.com/users/oliverkofoed/repos","events_url":"https://api.github.com/users/oliverkofoed/events{/privacy}","received_events_url":"https://api.github.com/users/oliverkofoed/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode-go/labels/cla-not-required","name":"cla-not-required","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-12T06:25:13Z","updated_at":"2016-10-27T06:17:54Z","closed_at":"2016-10-27T06:17:54Z","pull_request":{"url":"https://api.github.com/repos/Microsoft/vscode-go/pulls/388","html_url":"https://github.com/Microsoft/vscode-go/pull/388","diff_url":"https://github.com/Microsoft/vscode-go/pull/388.diff","patch_url":"https://github.com/Microsoft/vscode-go/pull/388.patch"},"body":"Use the preserveFocus[1] argument on OutputChannel.Show() to ensure that the editor does not lose focus when running tests.\r\n\r\nThis is, for instance, useful when you have a setup such as this keybinding that runs tests in the current package whenever cmd+t is pressed:\r\n\r\n[\r\n   {\r\n       \"key\":\"cmd+t\",\r\n       \"command\":\"go.test.package\",\r\n       \"when\":\"editorTextFocus && editorLangId=='go'\"\r\n   }\r\n]\r\n\r\n\r\n[1] https://github.com/Microsoft/vscode/commit/1da94d28ee74302bc30747403a314c49129519be"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/comments/256556060","html_url":"https://github.com/Microsoft/vscode-go/pull/388#issuecomment-256556060","issue_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/388","id":256556060,"user":{"login":"ramya-rao-a","id":16890566,"avatar_url":"https://avatars.githubusercontent.com/u/16890566?v=3","gravatar_id":"","url":"https://api.github.com/users/ramya-rao-a","html_url":"https://github.com/ramya-rao-a","followers_url":"https://api.github.com/users/ramya-rao-a/followers","following_url":"https://api.github.com/users/ramya-rao-a/following{/other_user}","gists_url":"https://api.github.com/users/ramya-rao-a/gists{/gist_id}","starred_url":"https://api.github.com/users/ramya-rao-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramya-rao-a/subscriptions","organizations_url":"https://api.github.com/users/ramya-rao-a/orgs","repos_url":"https://api.github.com/users/ramya-rao-a/repos","events_url":"https://api.github.com/users/ramya-rao-a/events{/privacy}","received_events_url":"https://api.github.com/users/ramya-rao-a/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T06:17:54Z","updated_at":"2016-10-27T06:17:54Z","body":"Closing this PR as #577 has done the same"}}
{"actor":{"display_login":"ramya-rao-a"}}