Skip to content

Commit de02e9a

Browse files
committed
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 de02e9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Extension/src/Debugger/nativeAttach.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ function execChildProcess(process: string, workingDirectory?: string): Promise<s
175175
}
176176

177177
if (stderr && stderr.length > 0) {
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+
}
178182
reject(new Error(stderr));
179183
return;
180184
}

0 commit comments

Comments
 (0)