🐛 use pipe for stdin when getting the user shell env

fixes #21655
This commit is contained in:
Joao Moreno
2017-03-07 10:42:49 +01:00
parent c2cb72d864
commit 78bc68a1d0

View File

@@ -27,7 +27,7 @@ function getUnixShellEnvironment(): TPromise<typeof process.env> {
const command = `'${process.execPath}' -p '"${mark}" + JSON.stringify(process.env) + "${mark}"'`;
const child = cp.spawn(process.env.SHELL, ['-ilc', command], {
detached: true,
stdio: ['ignore', 'pipe', process.stderr],
stdio: ['pipe', 'pipe', process.stderr],
env
});