-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node: Prelaunchtask not running on "restart debugging" in June 2020 release #102296
Comments
Same in launch chrome debug: launch.json {
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"preLaunchTask": "preLaunchTask",
"postDebugTask": "postDebugTask",
},
]
} tasks.json {
"version": "2.0.0",
"tasks": [
{
"label": "preLaunchTask",
"type": "shell",
"command": "echo preLaunchTask",
},
{
"label": "postDebugTask",
"type": "shell",
"command": "echo postDebugTask",
},
]
} |
The problem with not running tasks is that when a session is restarted we only run tasks associated with that session, if vscode/src/vs/workbench/contrib/debug/browser/debugService.ts Lines 615 to 624 in eb4a91f
This is okay -- I can just copy the preLaunch and postDebug tasks into the child session so that they get run. But unfortunately this then causes the
cc @weinand Since (3) is non-destructive/breaking, I will make that change in VS Code and implement it in js-debug so that Insiders can take it. I'm fine scrapping it and going with a different approach if you have feedback after vacationing 🙂 If we instead decide to go with (2) that will not be a breaking change for js-debug. I will hold off adding it to the launch.json schema (and therefore the public eye) pending feedback here. |
Users hitting this error -- this requires a change in VS Code itself and therefore is not as simple to get as grabbing the nightly js-debug extension. Instead, you can do one of the following:
|
Which VSCode version is this supposed to be fixed in? |
The VS Code Insiders build (https://code.visualstudio.com/insiders/). It will be released to everyone in the July release. |
Sorry, what is the July release version number? |
The July release will be version 1.48.0 and will go out early next month |
What do you mean by "early"? It's 10th, there's the 1.47.3 update and no 1.48.0 |
See #103792 |
Steps to Reproduce:
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/src/server.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": [
"${workspaceFolder}/build/**/*.js"
],
"outputCapture": "std",
},
3 Hit "restart debugging", code is not rebuilt
4 Hit stop, then "start debugging", code is rebuilt
5 Downgrade to May2020 and repeat
6 Code is rebuilt on "restart debugging"
Does this issue occur when all extensions are disabled?: Yes/No
The text was updated successfully, but these errors were encountered: