{"action":"opened","issue":{"url":"https://api.github.com/repos/geddski/macros/issues/32","repository_url":"https://api.github.com/repos/geddski/macros","labels_url":"https://api.github.com/repos/geddski/macros/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/geddski/macros/issues/32/comments","events_url":"https://api.github.com/repos/geddski/macros/issues/32/events","html_url":"https://github.com/geddski/macros/issues/32","id":308629286,"number":32,"title":"workbench.action.focusActiveEditorGroup has no effect in certain macros","user":{"login":"bersbersbers","id":12128514,"avatar_url":"https://avatars1.githubusercontent.com/u/12128514?v=4","gravatar_id":"","url":"https://api.github.com/users/bersbersbers","html_url":"https://github.com/bersbersbers","followers_url":"https://api.github.com/users/bersbersbers/followers","following_url":"https://api.github.com/users/bersbersbers/following{/other_user}","gists_url":"https://api.github.com/users/bersbersbers/gists{/gist_id}","starred_url":"https://api.github.com/users/bersbersbers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bersbersbers/subscriptions","organizations_url":"https://api.github.com/users/bersbersbers/orgs","repos_url":"https://api.github.com/users/bersbersbers/repos","events_url":"https://api.github.com/users/bersbersbers/events{/privacy}","received_events_url":"https://api.github.com/users/bersbersbers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-26T15:48:25Z","updated_at":"2018-03-26T15:48:25Z","closed_at":null,"author_association":"NONE","body":"This issue is also described in https://stackoverflow.com/questions/49457051\r\n\r\nBasically, while \"workbench.action.focusActiveEditorGroup\" can be issued in a key binding, it seems to have no effect when used in a macro immediately after \"editor.debug.action.selectionToRepl\". What does work is to use the same key binding twice: in the second run, \"editor.debug.action.selectionToRepl\" does not do anything (there is no active editor and thus no selection) and the second command just works. However, this is only possible for key bindings which are not captured by the debug console itself, so not really a good workaround.\r\n\r\n```\r\n    \"macros\": {\r\n        \"selectionToReplAndReturnToEditor\": [\r\n            \"editor.debug.action.selectionToRepl\",\r\n            \"workbench.action.focusActiveEditorGroup\",\r\n        ]\r\n    }\r\n```"}}
{"actor":{"display_login":"bersbersbers"}}