continue-custom/.vscode/launch.json
Nate Sesti 74020b1052
Tests for indexing + follow all .gitignore syntax (#1661)
* cleaner indexing progress updates messages

* chunking tests

* first round of testing for walkDir in .ts

* few more tests

* swap fs with ide

* clean up dead code

* replace traverseDirectory

* fix listFolders

* smoother indexing updates for chunking

* ide pathSetp

* absolute paths test

* fix path sep error with abs paths on windows

* clean up tests
2024-07-03 23:41:43 -07:00

100 lines
3.4 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": [],
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Core Binary",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/binary/out/index.js",
// "preLaunchTask": "binary:esbuild",
"outFiles": ["${workspaceFolder}/binary/out/**/*.js"],
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
"cwd": "${workspaceFolder}/binary",
"env": {
"CONTINUE_DEVELOPMENT": "true",
"CONTINUE_GLOBAL_DIR": "${workspaceFolder}/binary/.continue"
}
},
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/core/node_modules/.bin/jest",
"${fileBasenameNoExtension}",
"--runInBand",
"--config",
"${workspaceRoot}/core/jest.config.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"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": "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/test.js",
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode"
],
"pauseForSourceMap": false,
"outFiles": [
"${workspaceFolder}/extensions/vscode/out/extension.js",
"/Users/natesesti/.continue/config.ts"
],
"preLaunchTask": "vscode-extension:build"
},
// 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/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": {
// Avoid timing out when stopping on breakpoints during debugging in VSCode
"MOCHA_TIMEOUT": "0"
}
}
]
}