diff --git a/.vscode/launch.json b/.vscode/launch.json index 55019ae0..4ff1fabc 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,22 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "name": "bookshop", + "request": "launch", + "type": "node", + "runtimeExecutable": "npx", + "runtimeArgs": ["-n"], + "args": ["--", "cds", "run", "--with-mocks", "--in-memory"], // the leading "--" arg ensures it works with as well as without debugging + "cwd": "${workspaceFolder}/packages/bookshop", + "console": "integratedTerminal", + "serverReadyAction": { + "pattern": "server listening on (https?://\\S+|[0-9]+)", + "uriFormat": "http://localhost:%s", + "action": "openExternally" + }, + "skipFiles": ["/**"] + }, { "name": "cds run", "request": "launch",