提交 4eb9f060 编写于 作者: A Andre Weinand

add support for restarting debug session

上级 d9fc8683
......@@ -287,7 +287,11 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
this.toDispose.push(this.session.addListener2(debug.SessionEvents.DEBUGEE_TERMINATED, (event: DebugProtocol.TerminatedEvent) => {
aria.alert(nls.localize('programTerminated', "Program terminated."));
if (this.session && this.session.getId() === (<any>event).sessionId) {
this.session.disconnect().done(null, errors.onUnexpectedError);
if (event.body && typeof event.body.restart == 'boolean' && event.body.restart) {
this.restartSession().done(null, errors.onUnexpectedError);
} else {
this.session.disconnect().done(null, errors.onUnexpectedError);
}
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册