blob: e7e3d555e34ad29726484859a67bdf769af5aaf6 [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"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"stopOnEntry": false,
"sourceMaps": true,
"smartStep": true,
"preLaunchTask": "npm: webpack",
"env": {
"VSCODE_GO_IN_TEST": "" // Enable code
},
},
{
"name": "Launch as server",
"type": "node",
"protocol": "inspector",
"request": "launch",
"program": "${workspaceFolder}/dist/debugAdapter.js",
"args": [
"--server=4711"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"sourceMaps": true,
"smartStep": true,
"preLaunchTask": "npm: webpack"
},
{
"name": "Launch as server (dlv dap)",
"type": "node",
"protocol": "inspector",
"request": "launch",
"program": "${workspaceFolder}/dist/debugAdapter2.js",
"args": [
"--server=4711"
],
"sourceMaps": true,
"smartStep": true,
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: webpack"
},
{
"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",
"--user-data-dir=${workspaceFolder}/.user-data-dir-test",
"--timeout",
"999999"
],
"env": {
"VSCODE_GO_IN_TEST": "1" // Disable code that shouldn't be used in test
},
"stopOnEntry": false,
"sourceMaps": true,
"smartStep": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${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",
"--user-data-dir=${workspaceFolder}/.user-data-dir-test",
"--timeout", "999999",
],
"env": {
"VSCODE_GO_IN_TEST": "1" // Disable code that shouldn't be used in test
},
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${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",
"preLaunchTask": "npm: watch",
},
],
"compounds": [
{
"name": "Extension + Debug server",
"configurations": [
"Launch Extension",
"Launch as server"
]
}
]
}