ignore auto attach timeouts; fixes #57232

This commit is contained in:
Andre Weinand 2018-08-26 19:41:17 +02:00
parent 2c9408fecf
commit 5a8a6a71ff
2 changed files with 6 additions and 1 deletions

View file

@ -405,6 +405,7 @@ export interface IConfig extends IEnvConfig {
// internals
__sessionId?: string;
__restart?: any;
__autoAttach?: boolean;
port?: number; // TODO
}

View file

@ -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;
});
});