mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
ignore auto attach timeouts; fixes #57232
This commit is contained in:
@@ -405,6 +405,7 @@ export interface IConfig extends IEnvConfig {
|
||||
// internals
|
||||
__sessionId?: string;
|
||||
__restart?: any;
|
||||
__autoAttach?: boolean;
|
||||
port?: number; // TODO
|
||||
}
|
||||
|
||||
|
||||
@@ -717,7 +717,11 @@ export class DebugService implements IDebugService {
|
||||
this.panelService.openPanel(REPL_ID, false).done(undefined, errors.onUnexpectedError);
|
||||
}
|
||||
|
||||
this.showError(errorMessage, errors.isErrorWithActions(error) ? error.actions : []);
|
||||
if (resolved && resolved.request === 'attach' && resolved.__autoAttach) {
|
||||
// ignore attach timeouts in auto attach mode
|
||||
} else {
|
||||
this.showError(errorMessage, errors.isErrorWithActions(error) ? error.actions : []);
|
||||
}
|
||||
return undefined;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user