You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andre Weinand (@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.
surface the module (and the linux and macOS counterparts) as extension API (ideally independent of terminal because the process pickers provided by node-debug and others need to enumerate all processes and not only child processes of a terminal).
turn the node module into a Windows-only standalone utility that can be used as a (faster) replacement for wmic.
ideally independent of terminal because the process pickers provided by node-debug and others need to enumerate all processes and not only child processes of a terminal
Andre Weinand (@weinand) well that blows this idea of a terminal specific solution then if you need other processes, I'll close this off 😃
Andre Weinand (@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?
Shipping an exe within an node module is another option.
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
Or are you planning to offer a cross-platform solution of the process-tree module?
I think the minimal change for now should be fine, I don't have any time to devote to this.
Activity
weinand commentedon Mar 27, 2018
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
wmicbased Windows implementation will be replaced by the windows-process-tree ASAP.Tyriar commentedon Mar 27, 2018
Andre Weinand (@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.
weinand commentedon Mar 27, 2018
Oh, right.
IMO we have two options:
wmic.Tyriar commentedon Mar 27, 2018
Andre Weinand (@weinand) well that blows this idea of a terminal specific solution then if you need other processes, I'll close this off 😃
weinand commentedon Mar 28, 2018
Daniel Imms (@Tyriar) you didn't reply to my option 2 from above:
Does this make sense? How big would that be?
Tyriar commentedon Mar 28, 2018
Andre Weinand (@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?
weinand commentedon Mar 28, 2018
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).
So just replacing the spawning of
wmicby your fast replacement tool would probably the smallest change...Or are you planning to offer a cross-platform solution of the process-tree module?
Tyriar commentedon Mar 28, 2018
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.