93 lines
3 KiB
JSON
93 lines
3 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"compounds": [
|
|
{
|
|
"name": "Server + Extension (VSCode)",
|
|
"stopAll": true,
|
|
"configurations": ["Server", "Extension (VSCode)"]
|
|
},
|
|
{
|
|
"name": "Server + Tests (VSCode)",
|
|
"stopAll": true,
|
|
"configurations": ["Server", "Tests (VSCode)"]
|
|
}
|
|
],
|
|
"configurations": [
|
|
{
|
|
"name": "Pytest",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "continuedev/src/continuedev/tests/llm_test.py",
|
|
"console": "integratedTerminal",
|
|
"justMyCode": true,
|
|
"subProcess": true
|
|
},
|
|
{
|
|
"name": "Server",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "continuedev.src.continuedev.__main__",
|
|
"args": ["--port", "8001"],
|
|
"justMyCode": false,
|
|
"subProcess": false
|
|
// Does it need a build task?
|
|
// What about a watch task? - type errors?
|
|
},
|
|
{
|
|
"name": "Headless",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "continuedev.headless",
|
|
"args": ["--config", "continuedev/config.py"],
|
|
"justMyCode": false,
|
|
"subProcess": false
|
|
},
|
|
{
|
|
"name": "Extension (VSCode)",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}/extension",
|
|
"args": [
|
|
// Pass a directory to manually test in
|
|
"${workspaceFolder}/extension/manual-testing-sandbox",
|
|
"${workspaceFolder}/extension/manual-testing-sandbox/example.ts",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extension"
|
|
],
|
|
"outFiles": ["${workspaceFolder}/extension/out/**/*.js"],
|
|
"preLaunchTask": "vscode-extension:build",
|
|
"env": {
|
|
"CONTINUE_SERVER_URL": "http://localhost:8001"
|
|
}
|
|
},
|
|
// Has to be run after starting the server (separately or using the compound configuration)
|
|
{
|
|
"name": "Tests (VSCode)",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}/extension",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
// Pass a directory to run tests in
|
|
"${workspaceFolder}/extension/manual-testing-sandbox",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extension",
|
|
"--extensionTestsPath=${workspaceFolder}/extension/out/test-runner/mochaRunner"
|
|
],
|
|
"outFiles": [
|
|
// Allows setting breakpoints in test suites across the /src folder
|
|
"${workspaceFolder}/extension/out/test-suites/**/*.js",
|
|
// Allows setting breakpoints in mocha test runner file
|
|
"${workspaceFolder}/extension/out/test-runner/**/*.js"
|
|
],
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
"preLaunchTask": "vscode-extension:tests:build",
|
|
"env": {
|
|
"CONTINUE_SERVER_URL": "http://localhost:65432",
|
|
// Avoid timing out when stopping on breakpoints during debugging in VSCode
|
|
"MOCHA_TIMEOUT": "0"
|
|
}
|
|
}
|
|
]
|
|
}
|