mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
tty for ./scipts/code-server
This commit is contained in:
parent
4f27425179
commit
947f2b58f0
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue