Skip to content

Commit 00bfb87

Browse files
authored
debug-server-ready: fix misbehavor in compound launch configs (microsoft#186766)
debug-server-rady: fix misbehavor in compound launch configs Fixes microsoft#186765
1 parent 5c98922 commit 00bfb87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/debug-server-ready/src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ class ServerReadyDetector extends vscode.Disposable {
308308

309309
export function activate(context: vscode.ExtensionContext) {
310310

311-
context.subscriptions.push(vscode.debug.onDidChangeActiveDebugSession(session => {
312-
if (session && session.configuration.serverReadyAction) {
311+
context.subscriptions.push(vscode.debug.onDidStartDebugSession(session => {
312+
if (session.configuration.serverReadyAction) {
313313
const detector = ServerReadyDetector.start(session);
314314
if (detector) {
315315
ServerReadyDetector.startListeningTerminalData();

0 commit comments

Comments
 (0)