Skip to content

Commit 11ab313

Browse files
Emit 'terminated' event if PSES is restarted. (#2775)
1 parent 2437c22 commit 11ab313

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/debugAdapter.ts

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class NamedPipeDebugAdapter implements DebugAdapter {
5353

5454
// When the socket closes, end the session.
5555
this._debugServiceSocket.on("close", () => { this.dispose(); });
56+
this._debugServiceSocket.on("end", () => { this.dispose(); });
5657
}
5758

5859
public handleMessage(message: DebugProtocolMessage): void {
@@ -66,6 +67,7 @@ export class NamedPipeDebugAdapter implements DebugAdapter {
6667

6768
public dispose() {
6869
this._debugServiceSocket.destroy();
70+
this._sendMessage.fire({ type: 'event', event: 'terminated' });
6971
this._sendMessage.dispose();
7072
}
7173

0 commit comments

Comments
 (0)