153 lines
4.6 KiB
JSON
153 lines
4.6 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)"]
|
|
},
|
|
{
|
|
"name": "Server + React App",
|
|
"stopAll": true,
|
|
"configurations": ["Server", "Vite"]
|
|
}
|
|
],
|
|
"configurations": [
|
|
{
|
|
"type": "chrome",
|
|
"request": "attach",
|
|
"name": "Vite",
|
|
"url": "http://localhost:5173",
|
|
"webRoot": "${workspaceFolder}/gui/src",
|
|
"sourceMapPathOverrides": {
|
|
"webpack:///./src/*": "${webRoot}/*"
|
|
},
|
|
"port": 9222,
|
|
// "runtimeArgs": ["--remote-debugging-port=9222"],
|
|
"sourceMaps": true,
|
|
"preLaunchTask": "gui:dev"
|
|
},
|
|
{
|
|
"name": "Pytest",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "server/tests/llm_test.py",
|
|
"console": "integratedTerminal",
|
|
"justMyCode": true,
|
|
"subProcess": true
|
|
},
|
|
{
|
|
"name": "Reference",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "server.continuedev.models.reference.generate",
|
|
"justMyCode": true
|
|
},
|
|
{
|
|
"name": "Schema",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "continuedev.models.generate_json_schema",
|
|
"justMyCode": true,
|
|
"cwd": "${workspaceFolder}/server"
|
|
},
|
|
{
|
|
"name": "Server",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "server.continuedev.__main__",
|
|
"args": [
|
|
"--port",
|
|
"8001"
|
|
// "--meilisearch-url", "http://localhost:7701"
|
|
],
|
|
"justMyCode": false,
|
|
"subProcess": false,
|
|
"timeout": 10000,
|
|
"env": {
|
|
"RUST_BACKTRACE": "full"
|
|
}
|
|
// Does it need a build task?
|
|
// What about a watch task? - type errors?
|
|
},
|
|
{
|
|
"name": "Headless",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "server.continuedev.headless",
|
|
"args": ["--config", "server/continuedev/config.py"],
|
|
"justMyCode": false,
|
|
"subProcess": false
|
|
},
|
|
{
|
|
"name": "Index",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "server.continuedev",
|
|
"args": ["index", "server/continuedev"],
|
|
"justMyCode": false,
|
|
"subProcess": false
|
|
},
|
|
{
|
|
"name": "Query",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "server.continuedev",
|
|
"args": ["search", "--directory", "server/continuedev", "Ollama"],
|
|
"justMyCode": false,
|
|
"subProcess": false
|
|
},
|
|
{
|
|
"name": "Extension (VSCode)",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}/extensions/vscode",
|
|
"args": [
|
|
// Pass a directory to manually test in
|
|
"${workspaceFolder}/extensions/vscode",
|
|
"${workspaceFolder}/extensions/vscode/manual-testing-sandbox/example.ts",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode"
|
|
],
|
|
"outFiles": ["${workspaceFolder}/extensions/vscode/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}/extensions/vscode",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": [
|
|
// Pass a directory to run tests in
|
|
"${workspaceFolder}/extensions/vscode/manual-testing-sandbox",
|
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode",
|
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode/out/test-runner/mochaRunner"
|
|
],
|
|
"outFiles": [
|
|
// Allows setting breakpoints in test suites across the /src folder
|
|
"${workspaceFolder}/extensions/vscode/out/test-suites/**/*.js",
|
|
// Allows setting breakpoints in mocha test runner file
|
|
"${workspaceFolder}/extensions/vscode/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"
|
|
}
|
|
}
|
|
]
|
|
}
|