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
Actions launched from a server ready action in compound launch configs don't honor the stopAll
flag
#163124
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.72.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
I just upgraded to 1.72.0 and the issue is unchanged. |
"stopAll" isn't really related here - normally, there is no relationship between the server and browser debug session. But it might make sense to stop the browser session when the server session is stopped. We could try starting the browser session as a child of the server session, I don't think a child is automatically stopped when a parent is stopped though. The debug-server-ready extension could watch for the server session to end, and then manually stop the browser session. There might be some valid case when you want to keep debugging the browser after the server has terminated, so there could be an option for this too. Thoughts @connor4312? |
I don't think having a child session is a good thing, but we could have the debug-server-ready extension monitor the state as you suggest. I think that would be fine. |
Whatever you folks think is best works for me. I've sidestepped the issue for now by just adding a third debug config that launches a browser, but it isn't quite as slick as using |
@roblourens @connor4312 Do you think introducing a new property in {
"serverReadyAction": {
"pattern": ".*(https?:\\/\\/\\S+:[0-9]+\\/?).*",
"uriFormat": "%s",
"action": "debugWithChrome",
"killOnServerStop": true
}
} |
That would make sense to me. I don't have time to work on it right now but would take a PR |
@roblourens I'll submit a PR. |
@roblourens Just submitted the PR for you to check it whenever you had time. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
"stopAll": true
where one of the configs includesserverReadyAction
configurations
stop, but the session launched underserverReadyAction
does not. The user must click stop twice for all sessions to cease.My launch config:
Video demonstrating the behavior:
sampleapp.-.Visual.Studio.Code.2022-10-09.09-14-25.mp4
The text was updated successfully, but these errors were encountered: