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

kapture 2018-08-28 at 11 11 15

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22 (22 by maintainers)

Commits related to this issue

Most upvoted comments

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.