.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/extension",
"--disable-extensions"
],
"env": {
"VSC_DEBUG": "true"
},
"outFiles": ["${workspaceFolder}/extension/dist/**/*.js"],
"windows": {
"env": {
"VSC_DEBUG": "true"
}
}
},
{
"name": "Run All Extensions",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/extension"],
"env": {
"VSC_DEBUG": "true"
},
"outFiles": ["${workspaceFolder}/extension/dist/**/*.js"],
"windows": {
"env": {
"VSC_DEBUG": "true"
}
}
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File (webview)",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${fileBasenameNoExtension}", "--config", "jest.config.js"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
},
"cwd": "${workspaceFolder}/webview"
}
]
}