vscode: Extension Debugee does not start when there is a preLaunchTask
Testing #56822
- Open the hello-world extension in VS Code
- Have a watch npm script in package.json
"watch": "tsc -watch -p ./"
- Have the following launch configuration with preLaunchTask to debug the extension
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/src/**/*.js"
],
"preLaunchTask": "npm: watch"
}
- Start Debugging “Launch Extension” 🐛 It gets stuck in preLaunchTask
It resumes only when I kill the terminal. See the attached video
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (22 by maintainers)
Commits related to this issue
- debug: do not treat TaskEventActive as if the task started fixes #57346 — committed to microsoft/vscode by isidorn 6 years ago
Let me have a look.
In general the active event means that a task got activated. If it is not a background task (watching) then you should get either a promise complete or a promise reject when the task is done. However this depends on the terminal giving me the right events. May be something broke there.