Skip to content

Commit 5a8a6a7

Browse files
committed
ignore auto attach timeouts; fixes #57232
1 parent 2c9408f commit 5a8a6a7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/vs/workbench/parts/debug/common/debug.ts

+1
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ export interface IConfig extends IEnvConfig {
405405
// internals
406406
__sessionId?: string;
407407
__restart?: any;
408+
__autoAttach?: boolean;
408409
port?: number; // TODO
409410
}
410411

src/vs/workbench/parts/debug/electron-browser/debugService.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,11 @@ export class DebugService implements IDebugService {
717717
this.panelService.openPanel(REPL_ID, false).done(undefined, errors.onUnexpectedError);
718718
}
719719

720-
this.showError(errorMessage, errors.isErrorWithActions(error) ? error.actions : []);
720+
if (resolved && resolved.request === 'attach' && resolved.__autoAttach) {
721+
// ignore attach timeouts in auto attach mode
722+
} else {
723+
this.showError(errorMessage, errors.isErrorWithActions(error) ? error.actions : []);
724+
}
721725
return undefined;
722726
});
723727
});

0 commit comments

Comments
 (0)