debug-server-ready: fix misbehavor in compound launch configs (#186766)

debug-server-rady: fix  misbehavor in compound launch configs

Fixes #186765
This commit is contained in:
Connor Peet 2023-06-30 11:10:34 -07:00 committed by GitHub
parent 5c98922b52
commit 00bfb8704f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -308,8 +308,8 @@ class ServerReadyDetector extends vscode.Disposable {
export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(vscode.debug.onDidChangeActiveDebugSession(session => {
if (session && session.configuration.serverReadyAction) {
context.subscriptions.push(vscode.debug.onDidStartDebugSession(session => {
if (session.configuration.serverReadyAction) {
const detector = ServerReadyDetector.start(session);
if (detector) {
ServerReadyDetector.startListeningTerminalData();