From 4e0694f3c8366ce75e1b714074b5172f3b786859 Mon Sep 17 00:00:00 2001 From: Harry Pierson Date: Tue, 18 Jun 2024 13:38:36 -0700 Subject: [PATCH] look for launch config with `npx dbos debug` OR `npx dbos-sdk debug` (#37) --- src/startDebugging.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/startDebugging.ts b/src/startDebugging.ts index e7be498..a20ce54 100644 --- a/src/startDebugging.ts +++ b/src/startDebugging.ts @@ -60,7 +60,9 @@ function getDebugLaunchConfig(folder: vscode.WorkspaceFolder, workflowID: string const debugConfigs = vscode.workspace.getConfiguration("launch", folder).get('configurations') as ReadonlyArray | undefined; for (const config of debugConfigs ?? []) { const command = config["command"] as string | undefined; - if (command && command.includes("npx dbos debug")) { + if (command + && (command.includes("npx dbos debug") || command.includes("npx dbos-sdk debug")) + ) { const newCommand = command.replace("${command:dbos-ttdbg.pick-workflow-id}", `${workflowID}`); return { ...config, command: newCommand }; }