{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-debugadapter-node/issues/70","repository_url":"https://api.github.com/repos/Microsoft/vscode-debugadapter-node","labels_url":"https://api.github.com/repos/Microsoft/vscode-debugadapter-node/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-debugadapter-node/issues/70/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-debugadapter-node/issues/70/events","html_url":"https://github.com/Microsoft/vscode-debugadapter-node/issues/70","id":182595043,"number":70,"title":"How to get notified when the runInTerminal script exited?","user":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-12T18:12:40Z","updated_at":"2016-10-13T19:50:13Z","closed_at":"2016-10-12T18:41:15Z","body":"I previously did this when a program was run in terminal:\r\n```ts\r\nscript.on('exit', () => {\r\n   this.sendEvent(new vscode.TerminatedEvent());\r\n});\r\n```\r\n\r\nHow can I accomplish this with `runInTerminal` request?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-debugadapter-node/issues/comments/253619655","html_url":"https://github.com/Microsoft/vscode-debugadapter-node/issues/70#issuecomment-253619655","issue_url":"https://api.github.com/repos/Microsoft/vscode-debugadapter-node/issues/70","id":253619655,"user":{"login":"gregg-miskelly","id":11078489,"avatar_url":"https://avatars.githubusercontent.com/u/11078489?v=3","gravatar_id":"","url":"https://api.github.com/users/gregg-miskelly","html_url":"https://github.com/gregg-miskelly","followers_url":"https://api.github.com/users/gregg-miskelly/followers","following_url":"https://api.github.com/users/gregg-miskelly/following{/other_user}","gists_url":"https://api.github.com/users/gregg-miskelly/gists{/gist_id}","starred_url":"https://api.github.com/users/gregg-miskelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregg-miskelly/subscriptions","organizations_url":"https://api.github.com/users/gregg-miskelly/orgs","repos_url":"https://api.github.com/users/gregg-miskelly/repos","events_url":"https://api.github.com/users/gregg-miskelly/events{/privacy}","received_events_url":"https://api.github.com/users/gregg-miskelly/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T19:50:13Z","updated_at":"2016-10-13T19:50:13Z","body":"Yes, I understand. My suggestion (and again I haven't actually tried this, so maybe this will not work) is that instead of sending `myProgram myArgs` to the VS Code terminal instead send `~/vscode/extensions/.../run-target-process.sh 6b978b1f4e3041d4991612a809709cb0 myProgram myArgs` so that run-target-process.sh can spawn `myProgram` and communicate back to your extension its pid, tell you when it exited, etc (using the GUID to indicate the name of the pipes you can use to communicate between the two processes)."}}
{"actor":{"display_login":"gregg-miskelly"}}