提交 5a8a6a71 编写于 作者: A Andre Weinand

ignore auto attach timeouts; fixes #57232

上级 2c9408fe
......@@ -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;
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册