Skip to content

Commit

Permalink
ignore 'screen size is bogus' error; fixes microsoft/vscode/issues/10…
Browse files Browse the repository at this point in the history
…0563 (and microsoft/vscode/issues/75932) (#5669)

* ignore 'screen size is bogus' error; fixes microsoft/vscode#75932; imitiates similar fix for a different extension microsoft/vscode-node-debug/commit/5298920
  • Loading branch information
nukoyluoglu authored Jun 23, 2020
1 parent eedadd9 commit 9db05b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Extension/src/Debugger/nativeAttach.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ function execChildProcess(process: string, workingDirectory?: string): Promise<s
}

if (stderr && stderr.length > 0) {
reject(new Error(stderr));
if (stderr.indexOf('screen size is bogus') >= 0) {
// ignore this error silently; see https://github.com/microsoft/vscode/issues/75932
// see similar fix for the Node - Debug (Legacy) Extension at https://github.com/microsoft/vscode-node-debug/commit/5298920
} else {
reject(new Error(stderr));
}
return;
}

Expand Down

0 comments on commit 9db05b6

Please sign in to comment.