Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /