We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1717482 commit 61515eeCopy full SHA for 61515ee
src/goDebugFactory.ts
@@ -439,7 +439,7 @@ function spawnDlvDapServerProcess(
439
p.stderr.on('data', (chunk) => {
440
logErr(chunk.toString());
441
});
442
- p.stdio[3].on('data', (chunk) => {
+ p.stdio[3]?.on('data', (chunk) => {
443
const msg = chunk.toString();
444
if (!started && msg.startsWith('DAP server listening at:')) {
445
stopWaitingForServerToStart();
@@ -456,10 +456,11 @@ function spawnDlvDapServerProcess(
456
logConsole(msg);
457
}
458
459
- p.stdio[3].on('close', () => {
+ p.stdio[3]?.on('close', () => {
460
// always false on windows.
461
logDestStream?.end();
462
463
+
464
p.on('close', (code, signal) => {
465
// TODO: should we watch 'exit' instead?
466
0 commit comments