提交 b20fb637 编写于 作者: I isidor

debug: make sure to send configurationDone only after breakpoints response arrives.

上级 0799ac05
......@@ -222,9 +222,8 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
private registerSessionListeners(): void {
this.toDispose.push(this.session.addListener2(debug.SessionEvents.INITIALIZED, (event: DebugProtocol.InitializedEvent) => {
this.sendAllBreakpoints().done(null, errors.onUnexpectedError);
this.sendExceptionBreakpoints().done(null, errors.onUnexpectedError);
this.session.configurationDone().done(null, errors.onUnexpectedError);
Promise.join([this.sendAllBreakpoints(), this.sendExceptionBreakpoints()]).then(() =>
this.session.configurationDone()).done(null, errors.onUnexpectedError);
}));
this.toDispose.push(this.session.addListener2(debug.SessionEvents.STOPPED, (event: DebugProtocol.StoppedEvent) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册