compose-language-service/.vscode/launch.json

99 строки
3.5 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",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha All",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout", // Set an infinite timeout when debugging so breakpoints don't mislead into thinking the test failed
"0",
"--file",
"${workspaceFolder}/lib/test/global.test.js",
"--recursive",
"${workspaceFolder}/lib/test"
],
"preLaunchTask": "${defaultBuildTask}",
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
],
"internalConsoleOptions": "openOnSessionStart",
"presentation": {
"group": "Mocha",
}
},
{
"type": "node",
"request": "launch",
"name": "Mocha Unit Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout", // Set an infinite timeout when debugging so breakpoints don't mislead into thinking the test failed
"0",
"--file",
"${workspaceFolder}/lib/test/global.test.js",
"--grep",
"/unit/i",
"--recursive",
"${workspaceFolder}/lib/test"
],
"preLaunchTask": "${defaultBuildTask}",
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
],
"internalConsoleOptions": "openOnSessionStart",
"presentation": {
"group": "Mocha",
}
},
{
"name": "Test Client Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/src/test/clientExtension",
"--disable-extension=ms-azuretools.vscode-docker", // Keep the Docker extension from running so it doesn't interfere with testing
"--disable-extension=redhat.vscode-yaml", // Keep the YAML extension from running so it doesn't interfere with testing
],
"preLaunchTask": "tsc-watch: client extension",
"presentation": {
"hidden": true,
}
},
{
"name": "Server Attach",
"port": 6009,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"timeout": 20000,
"presentation": {
"group": "Live testing",
"order": 2
}
},
],
"compounds": [
{
"name": "Client + Server",
"configurations": [
"Test Client Extension",
"Server Attach"
],
"presentation": {
"group": "Live testing",
"order": 1
},
"preLaunchTask": "tsc-watch: language service"
}
]
}