-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal API to get child process IDs #46737
Comments
Node-debug determines the child process IDs based on our own xplat getProcessTree and filters by the '--type=terminal' argument. See https://github.com/Microsoft/vscode-node-debug/blob/e1f63c924fd3c881048eb3e8abdcd50f4d20806e/src/node/extension/nodeProcessTree.ts#L116-L118 Yes, the |
@weinand because it's a native node module you can't ship it with the extension though (afaik), so an API for this would allow you to sit on public API. |
Oh, right. IMO we have two options:
|
@weinand well that blows this idea of a terminal specific solution then if you need other processes, I'll close this off 😃 |
@Tyriar you didn't reply to my option 2 from above:
Does this make sense? How big would that be? |
@weinand as in ship an exe with VS Code? A better option might be to ship the binaries with the node module so extensions can use it directly? |
I meant "shipping an exe with node-debug". Shipping an exe within an node module is another option. But in my case I have already code that deals with macOS, linux, and Windows (see https://github.com/Microsoft/vscode-node-debug/blob/master/src/node/extension/processTree.ts). Or are you planning to offer a cross-platform solution of the process-tree module? |
It would be shipping a .node file, the only issue is I think we still need to make binaries for multiple architectures available and only include the correct one when we sign (or it will error out). I want to solve this eventually for node-pty as well so users don't need the C++ toolchain installed microsoft/node-pty#46
I think the minimal change for now should be fine, I don't have any time to devote to this. |
Node debug and Python both have use cases to enable auto attach.
The text was updated successfully, but these errors were encountered: