| 1 | { |
| 2 | // Use IntelliSense to learn about possible attributes. |
| 3 | // Hover to view descriptions of existing attributes. |
| 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 5 | "version": "0.2.0", |
| 6 | "compounds": [], |
| 7 | "configurations": [ |
| 8 | { |
| 9 | "name": "Launch extension", |
| 10 | "type": "extensionHost", |
| 11 | "request": "launch", |
| 12 | "cwd": "${workspaceFolder}/extensions/vscode", |
| 13 | "args": [ |
| 14 | // Pass a directory to manually test in |
| 15 | "${workspaceFolder}/manual-testing-sandbox", |
| 16 | "${workspaceFolder}/manual-testing-sandbox/test.js", |
| 17 | "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode" |
| 18 | ], |
| 19 | "pauseForSourceMap": false, |
| 20 | "outFiles": ["${workspaceFolder}/extensions/vscode/out/extension.js"], |
| 21 | "preLaunchTask": "vscode-extension:build-with-packages", |
| 22 | "env": { |
| 23 | // "CONTROL_PLANE_ENV": "local", |
| 24 | "CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug" |
| 25 | // "staging" for the preview deployment "CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug" |
| 26 | // "local" for entirely local development of control plane/proxy |
| 27 | } |
| 28 | }, |
| 29 | { |
| 30 | "type": "node", |
| 31 | "request": "launch", |
| 32 | "name": "Core Binary", |
| 33 | "skipFiles": ["<node_internals>/**"], |
| 34 | "program": "${workspaceFolder}/binary/out/index.js", |
| 35 | "outFiles": ["${workspaceFolder}/binary/out/**/*.js"], |
| 36 | "sourceMaps": true, |
| 37 | "smartStep": true, |
| 38 | "internalConsoleOptions": "openOnSessionStart", |
| 39 | "cwd": "${workspaceFolder}/binary", |
| 40 | "env": { |
| 41 | // "CONTROL_PLANE_ENV": "test", |
| 42 | "CONTINUE_DEVELOPMENT": "true", |
| 43 | "CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug" |
| 44 | } |
| 45 | }, |
| 46 | { |
| 47 | "name": "Debug Jest Tests", |
| 48 | "type": "node", |
| 49 | "request": "launch", |
| 50 | "runtimeArgs": [ |
| 51 | "--inspect-brk", |
| 52 | "${workspaceRoot}/core/node_modules/.bin/jest", |
| 53 | "${fileBasenameNoExtension}", |
| 54 | "--runInBand", |
| 55 | "--config", |
| 56 | "${workspaceRoot}/core/jest.config.js" |
| 57 | ], |
| 58 | |
| 59 | "console": "integratedTerminal", |
| 60 | "internalConsoleOptions": "neverOpen" |
| 61 | }, |
| 62 | { |
| 63 | "type": "chrome", |
| 64 | "request": "attach", |
| 65 | "name": "Vite", |
| 66 | "url": "http://localhost:5173", |
| 67 | "webRoot": "${workspaceFolder}/gui/src", |
| 68 | "sourceMapPathOverrides": { |
| 69 | "webpack:///./src/*": "${webRoot}/*" |
| 70 | }, |
| 71 | "port": 9222, |
| 72 | // "runtimeArgs": ["--remote-debugging-port=9222"], |
| 73 | "sourceMaps": true |
| 74 | // "preLaunchTask": "gui:dev" |
| 75 | }, |
| 76 | { |
| 77 | "name": "[Core] Jest Test Debugger, Current Open File", |
| 78 | "type": "node", |
| 79 | "request": "launch", |
| 80 | "runtimeArgs": [ |
| 81 | "--inspect-brk", |
| 82 | "${workspaceRoot}/core/node_modules/jest/bin/jest.js", |
| 83 | "--runInBand", |
| 84 | "--config", |
| 85 | "${workspaceRoot}/core/jest.config.js", |
| 86 | "${relativeFile}" |
| 87 | ], |
| 88 | "cwd": "${workspaceRoot}/core", |
| 89 | "console": "integratedTerminal", |
| 90 | "internalConsoleOptions": "neverOpen", |
| 91 | "env": { |
| 92 | "NODE_OPTIONS": "--experimental-vm-modules", |
| 93 | "CI": "true", |
| 94 | "DEBUG": "jest" |
| 95 | } |
| 96 | }, |
| 97 | { |
| 98 | "name": "[openai-adapters] Jest Test Debugger, Current Open File", |
| 99 | "type": "node", |
| 100 | "request": "launch", |
| 101 | "runtimeArgs": [ |
| 102 | "--inspect-brk", |
| 103 | "${workspaceRoot}/packages/openai-adapters/node_modules/jest/bin/jest.js", |
| 104 | "--runInBand", |
| 105 | "--config", |
| 106 | "${workspaceRoot}/packages/openai-adapters/jest.config.mjs", |
| 107 | "${relativeFile}" |
| 108 | ], |
| 109 | "cwd": "${workspaceRoot}/packages/openai-adapters", |
| 110 | "console": "integratedTerminal", |
| 111 | "internalConsoleOptions": "neverOpen", |
| 112 | "env": { |
| 113 | "NODE_OPTIONS": "--experimental-vm-modules" |
| 114 | } |
| 115 | }, |
| 116 | { |
| 117 | "name": "[config-yaml] Jest Test Debugger, Current Open File", |
| 118 | "type": "node", |
| 119 | "request": "launch", |
| 120 | "runtimeArgs": [ |
| 121 | "--inspect-brk", |
| 122 | "${workspaceRoot}/packages/config-yaml/node_modules/jest/bin/jest.js", |
| 123 | "--runInBand", |
| 124 | "--config", |
| 125 | "${workspaceRoot}/packages/config-yaml/jest.config.mjs", |
| 126 | "${relativeFile}" |
| 127 | ], |
| 128 | "cwd": "${workspaceRoot}/packages/config-yaml", |
| 129 | "console": "integratedTerminal", |
| 130 | "internalConsoleOptions": "neverOpen", |
| 131 | "env": { |
| 132 | "NODE_OPTIONS": "--experimental-vm-modules" |
| 133 | } |
| 134 | } |
| 135 | ] |
| 136 | } |