From 52989207b9677da89d1f6b6a3852751787fdf2f7 Mon Sep 17 00:00:00 2001 From: Andre Weinand Date: Fri, 6 Mar 2020 17:30:18 +0100 Subject: [PATCH] ignore bogus screensize error; fixes microsoft/vscode#75932 --- src/node/extension/processTree.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/node/extension/processTree.ts b/src/node/extension/processTree.ts index ac565d44..130630e7 100644 --- a/src/node/extension/processTree.ts +++ b/src/node/extension/processTree.ts @@ -157,7 +157,12 @@ export function getProcesses(one: (pid: number, ppid: number, command: string, a proc.stderr.setEncoding('utf8'); proc.stderr.on('data', data => { - reject(new Error(data.toString())); + const e = data.toString(); + if (e.indexOf('screen size is bogus') >= 0) { + // ignore this error silently; see https://github.com/microsoft/vscode/issues/75932 + } else { + reject(new Error(data.toString())); + } }); proc.on('close', (code, signal) => {