| 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", |
| 22 | "postDebugTask": "Terminate All Tasks", |
| 23 | "env": { |
| 24 | // "CONTROL_PLANE_ENV": "local", |
| 25 | "CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug" |
| 26 | // "staging" for the preview deployment "CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug" |
| 27 | // "local" for entirely local development of control plane/proxy |
| 28 | } |
| 29 | }, |
| 30 | { |
| 31 | "type": "node", |
| 32 | "request": "launch", |
| 33 | "name": "Core Binary", |
| 34 | "skipFiles": ["<node_internals>/**"], |
| 35 | "program": "${workspaceFolder}/binary/out/index.js", |
| 36 | "outFiles": ["${workspaceFolder}/binary/out/**/*.js"], |
| 37 | "sourceMaps": true, |
| 38 | "smartStep": true, |
| 39 | "internalConsoleOptions": "openOnSessionStart", |
| 40 | "cwd": "${workspaceFolder}/binary", |
| 41 | "env": { |
| 42 | // "CONTROL_PLANE_ENV": "test", |
| 43 | "CONTINUE_DEVELOPMENT": "true", |
| 44 | "CONTINUE_GLOBAL_DIR": "${workspaceFolder}/extensions/.continue-debug" |
| 45 | } |
| 46 | }, |
| 47 | { |
| 48 | "name": "Debug Jest Tests", |
| 49 | "type": "node", |
| 50 | "request": "launch", |
| 51 | "runtimeArgs": [ |
| 52 | "--inspect-brk", |
| 53 | "${workspaceRoot}/core/node_modules/.bin/jest", |
| 54 | "${fileBasenameNoExtension}", |
| 55 | "--runInBand", |
| 56 | "--config", |
| 57 | "${workspaceRoot}/core/jest.config.js" |
| 58 | ], |
| 59 | |
| 60 | "console": "integratedTerminal", |
| 61 | "internalConsoleOptions": "neverOpen" |
| 62 | }, |
| 63 | { |
| 64 | "type": "chrome", |
| 65 | "request": "attach", |
| 66 | "name": "Vite", |
| 67 | "url": "http://localhost:5173", |
| 68 | "webRoot": "${workspaceFolder}/gui/src", |
| 69 | "sourceMapPathOverrides": { |
| 70 | "webpack:///./src/*": "${webRoot}/*" |
| 71 | }, |
| 72 | "port": 9222, |
| 73 | // "runtimeArgs": ["--remote-debugging-port=9222"], |
| 74 | "sourceMaps": true |
| 75 | // "preLaunchTask": "gui:dev" |
| 76 | }, |
| 77 | { |
| 78 | "name": "[Core] Jest Test Debugger, Current Open File", |
| 79 | "type": "node", |
| 80 | "request": "launch", |
| 81 | "runtimeArgs": [ |
| 82 | "--inspect-brk", |
| 83 | "${workspaceRoot}/core/node_modules/jest/bin/jest.js", |
| 84 | "--runInBand", |
| 85 | "--config", |
| 86 | "${workspaceRoot}/core/jest.config.js", |
| 87 | "${relativeFile}" |
| 88 | ], |
| 89 | "cwd": "${workspaceRoot}/core", |
| 90 | "console": "integratedTerminal", |
| 91 | "internalConsoleOptions": "neverOpen", |
| 92 | "env": { |
| 93 | "NODE_OPTIONS": "--experimental-vm-modules", |
| 94 | "CI": "true", |
| 95 | "DEBUG": "jest" |
| 96 | } |
| 97 | }, |
| 98 | { |
| 99 | "name": "[openai-adapters] Jest Test Debugger, Current Open File", |
| 100 | "type": "node", |
| 101 | "request": "launch", |
| 102 | "runtimeArgs": [ |
| 103 | "--inspect-brk", |
| 104 | "${workspaceRoot}/packages/openai-adapters/node_modules/jest/bin/jest.js", |
| 105 | "--runInBand", |
| 106 | "--config", |
| 107 | "${workspaceRoot}/packages/openai-adapters/jest.config.mjs", |
| 108 | "${relativeFile}" |
| 109 | ], |
| 110 | "cwd": "${workspaceRoot}/packages/openai-adapters", |
| 111 | "console": "integratedTerminal", |
| 112 | "internalConsoleOptions": "neverOpen", |
| 113 | "env": { |
| 114 | "NODE_OPTIONS": "--experimental-vm-modules" |
| 115 | } |
| 116 | }, |
| 117 | { |
| 118 | "name": "[config-yaml] Jest Test Debugger, Current Open File", |
| 119 | "type": "node", |
| 120 | "request": "launch", |
| 121 | "runtimeArgs": [ |
| 122 | "--inspect-brk", |
| 123 | "${workspaceRoot}/packages/config-yaml/node_modules/jest/bin/jest.js", |
| 124 | "--runInBand", |
| 125 | "--config", |
| 126 | "${workspaceRoot}/packages/config-yaml/jest.config.mjs", |
| 127 | "${relativeFile}" |
| 128 | ], |
| 129 | "cwd": "${workspaceRoot}/packages/config-yaml", |
| 130 | "console": "integratedTerminal", |
| 131 | "internalConsoleOptions": "neverOpen", |
| 132 | "env": { |
| 133 | "NODE_OPTIONS": "--experimental-vm-modules" |
| 134 | } |
| 135 | } |
| 136 | ] |
| 137 | } |