提交 631e76f4 编写于 作者: I isidor

debug: send 'exit' event even if there is no socket when stopping server

fixes #18772
上级 b7e8092b
...@@ -466,9 +466,9 @@ export class RawDebugSession extends v8.V8Protocol implements debug.ISession { ...@@ -466,9 +466,9 @@ export class RawDebugSession extends v8.V8Protocol implements debug.ISession {
if (this.socket !== null) { if (this.socket !== null) {
this.socket.end(); this.socket.end();
this.cachedInitServer = null; this.cachedInitServer = null;
this.onEvent({ event: 'exit', type: 'event', seq: 0 });
} }
this.onEvent({ event: 'exit', type: 'event', seq: 0 });
if (!this.serverProcess) { if (!this.serverProcess) {
return TPromise.as(null); return TPromise.as(null);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册