diff --git a/src/commands/getProxyUrl.ts b/src/commands/getProxyUrl.ts index 8304281..a9ad48e 100644 --- a/src/commands/getProxyUrl.ts +++ b/src/commands/getProxyUrl.ts @@ -15,7 +15,7 @@ export async function getProxyUrl(cfg?: vscode.DebugConfiguration & { rootPath?: if (!proxyLaunched) { throw new Error("Failed to launch debug proxy", { cause: { folder: folder.uri.fsPath, debugConfig } }); } - return `http://localhost:${config.getProxyPort(folder)}`; + return `postgresql://localhost:${config.getProxyPort(folder)}`; } catch (e) { logger.error("getProxyUrl", e); vscode.window.showErrorMessage(`Failed to get proxy URL`); diff --git a/src/startDebugging.ts b/src/startDebugging.ts index e3329e4..e7be498 100644 --- a/src/startDebugging.ts +++ b/src/startDebugging.ts @@ -60,7 +60,7 @@ 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-sdk debug")) { + if (command && command.includes("npx dbos debug")) { const newCommand = command.replace("${command:dbos-ttdbg.pick-workflow-id}", `${workflowID}`); return { ...config, command: newCommand }; } @@ -72,7 +72,7 @@ function getDebugLaunchConfig(folder: vscode.WorkspaceFolder, workflowID: string name: `Time-Travel Debug ${workflowID}`, type: 'node-terminal', request: 'launch', - command: `npx dbos-sdk debug -x http://localhost:${proxyPort} -u ${workflowID}`, + command: `npx dbos debug -x postgresql://localhost:${proxyPort} -u ${workflowID}`, preLaunchTask, }; } \ No newline at end of file