blob: 94310ec823b82044b0a586dd2b8cad280f45c1bc [file] [log] [blame]
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
// path to VSCode executable
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--disable-extensions"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "npm: watch"
},
{
"name": "Launch as server",
"type": "node",
"protocol": "inspector",
"request": "launch",
"program": "${workspaceFolder}/out/src/debugAdapter/goDebug.js",
"args": [
"--server=4711"
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "npm"
},
{
"name": "Launch Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
// the workspace path should be GOPATH
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/integration/index",
"--timeout",
"999999"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
},
{
"name": "Launch Extension Tests with Gopls",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
// the workspace path should be GOPATH
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/gopls/index",
"--timeout", "999999",
"${workspaceFolder}/test/gopls/testfixtures/src/workspace" // gopls requires a workspace to work with.
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch",
},
{
"type": "node",
"request": "launch",
"name": "Launch Unit Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-u",
"tdd",
"--timeout",
"5000",
"--colors",
"${workspaceFolder}/out/test/unit"
],
"internalConsoleOptions": "openOnSessionStart"
},
],
"compounds": [
{
"name": "Extension + Debug server",
"configurations": [
"Launch Extension",
"Launch as server"
]
}
]
}