X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fsrc%2Fconpty_console_list_agent.ts;fp=node_modules%2Fnode-pty%2Fsrc%2Fconpty_console_list_agent.ts;h=0000000000000000000000000000000000000000;hp=2aec542534698fcc0586f64a6ae7b7fd2d37af9f;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/node-pty/src/conpty_console_list_agent.ts b/node_modules/node-pty/src/conpty_console_list_agent.ts deleted file mode 100644 index 2aec542..0000000 --- a/node_modules/node-pty/src/conpty_console_list_agent.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2019, Microsoft Corporation (MIT License). - * - * This module fetches the console process list for a particular PID. It must be - * called from a different process (child_process.fork) as there can only be a - * single console attached to a process. - */ - -let getConsoleProcessList: any; -try { - getConsoleProcessList = require('../build/Release/conpty_console_list.node').getConsoleProcessList; -} catch (err) { - getConsoleProcessList = require('../build/Debug/conpty_console_list.node').getConsoleProcessList; -} - -const shellPid = parseInt(process.argv[2], 10); -const consoleProcessList = getConsoleProcessList(shellPid); -process.send({ consoleProcessList }); -process.exit(0);