Skip to content

Commit 9db05b6

Browse files
authored
ignore 'screen size is bogus' error; fixes microsoft/vscode/issues/100563 (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
1 parent eedadd9 commit 9db05b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Extension/src/Debugger/nativeAttach.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,12 @@ function execChildProcess(process: string, workingDirectory?: string): Promise<s
175175
}
176176

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

0 commit comments

Comments
 (0)