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

Commit

Permalink
ignore bogus screensize error; fixes microsoft/vscode#75932
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Mar 6, 2020
1 parent 0cb2bf5 commit 5298920
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/node/extension/processTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5298920

Please sign in to comment.