From 153bac76e6921144ed9caf418ae22ad0991d41fd Mon Sep 17 00:00:00 2001 From: ross-p-smith Date: Sat, 26 Aug 2023 21:03:56 +0100 Subject: [PATCH] Debug in a devcontainer --- .devcontainer/devcontainer.json | 21 +++++++++++++++++++++ .vscode/launch.json | 5 +---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..b6a30a6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,21 @@ +{ + "name": "APIOps VS Code Extension", + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", + "features": { + "ghcr.io/devcontainers/features/azure-cli:1":{} + }, + + "postCreateCommand": "npm install -g yo generator-code", + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "dbaeumer.vscode-eslint", + "amodio.tsl-problem-matcher", + "ms-vscode.azure-account", + "humao.rest-client" + ] + } + } +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 0741e05..d27dc6e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,6 @@ "args": [ "--extensionDevelopmentPath=${workspaceFolder}" ], - "stopOnEntry": false, "sourceMaps": true, // outFiles is used for locating generated JavaScript files, see https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_source-maps "outFiles": [ @@ -21,6 +20,7 @@ ], "preLaunchTask": "npm: webpack", "env": { + "AZCODE_APIM_IGNORE_BUNDLE": "1", "DEBUGTELEMETRY": "1", "NODE_DEBUG": "" } @@ -33,7 +33,6 @@ "args": [ "--extensionDevelopmentPath=${workspaceFolder}" ], - "stopOnEntry": false, "sourceMaps": true, // outFiles is used for locating generated JavaScript files, see https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_source-maps "outFiles": [ @@ -53,7 +52,6 @@ "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test" ], - "stopOnEntry": false, "sourceMaps": true, "outFiles": [ "${workspaceFolder}/out/**/*.js" @@ -77,7 +75,6 @@ "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/dist/test" ], - "stopOnEntry": false, "sourceMaps": true, "outFiles": [ "${workspaceFolder}/dist/**/*.js"