Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 5298920

Browse files
committed
ignore bogus screensize error; fixes microsoft/vscode#75932
1 parent 0cb2bf5 commit 5298920

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/node/extension/processTree.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ export function getProcesses(one: (pid: number, ppid: number, command: string, a
157157

158158
proc.stderr.setEncoding('utf8');
159159
proc.stderr.on('data', data => {
160-
reject(new Error(data.toString()));
160+
const e = data.toString();
161+
if (e.indexOf('screen size is bogus') >= 0) {
162+
// ignore this error silently; see https://github.com/microsoft/vscode/issues/75932
163+
} else {
164+
reject(new Error(data.toString()));
165+
}
161166
});
162167

163168
proc.on('close', (code, signal) => {

0 commit comments

Comments
 (0)