diff options
author | Martin Aeschlimann <martinae@microsoft.com> | 2022-01-27 22:22:34 +0300 |
---|---|---|
committer | Martin Aeschlimann <martinae@microsoft.com> | 2022-01-27 22:22:38 +0300 |
commit | 947f2b58f033f01796e2386fe2e844c8843a39bd (patch) | |
tree | aeef3e234b0d248f1e29a06c398d00fd48c99d75 | |
parent | 4f27425179174a914161affa6454ecf2b02c895a (diff) |
tty for ./scipts/code-server
-rw-r--r-- | scripts/code-server.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/scripts/code-server.js b/scripts/code-server.js index 48ec073596b..c7ecdd8c07c 100644 --- a/scripts/code-server.js +++ b/scripts/code-server.js @@ -57,17 +57,7 @@ startServer(); function startServer() { console.log(`Starting server: ${entryPoint} ${serverArgs.join(' ')}`); - const proc = cp.spawn(process.execPath, [entryPoint, ...serverArgs], { env }); - - proc.stdout.on('data', data => { - // Log everything - process.stdout.write(data); - }); - - // Log errors - proc.stderr.on('data', data => { - process.stderr.write(data); - }); + const proc = cp.spawn(process.execPath, [entryPoint, ...serverArgs], { env, stdio: 'inherit' }); proc.on('exit', (code) => process.exit(code)); |