shell: log current stdout/stderr when shell env resolution times out (#251447)

Refs #251326
This commit is contained in:
Connor Peet
2025-06-13 16:19:47 -07:00
committed by GitHub
parent aab65e8675
commit 35c4aeb69d
+3
View File
@@ -176,6 +176,9 @@ async function doResolveShellEnv(logService: ILogService, token: CancellationTok
});
token.onCancellationRequested(() => {
logService.error('doResolveShellEnv#timeout', 'Shell environment resolution timed out, buffers so far:');
logService.error('doResolveShellEnv#stdout', Buffer.concat(buffers).toString('utf8') || '<empty>');
logService.error('doResolveShellEnv#stderr', Buffer.concat(stderr).toString('utf8') || '<empty>');
child.kill();
return reject(new CancellationError());