-
Notifications
You must be signed in to change notification settings - Fork 30k
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
compacted debug sessions should show name of child and not of parent #101429
Comments
@weinand what you are saying makes sense, however for js-debug this would not really work that well scine the child sessions have "weird names". What I suggest: we change this on the vscode side as you suggest - to use the child name |
@isidorn yes, we we will have to go with your proposal. Another argument for that approach: with the current behavior the "weird name" child gets the "nice name" from the parent. But if another child arrives, suddenly two "weird names" shows up... An alternative approach would be that VS Code automatically concatenates the names from parent and child as you suggested. But I'm not sure how well that would work in practice... @connor4312 what's your take on this? |
It's not just JS. Python also has "weird" child session names - they're basically "Subprocess ...", where ... is the process ID. Concatenating them would also not work well. I'm not sure why it's a weird scheme, though. This naming scheme works just fine when the tree is fully expanded - it tells users exactly what they need to know, without overburdening them with redundant information that's already available (e.g. repeating parent process name). It feels weird having to change that just to play well with a subset of scenarios that involve compacting. Also, if #101140 is implemented, I don't think it would be accurate to describe compacting as eliminating the parent session anymore. |
After discussions with @weinand we decided to do the following changes:
@connor4312 As a follow up for js-debug I have created this item microsoft/vscode-js-debug#551 |
Testing #101009
When hierarchical debug sessions are compacted, the resulting tree node uses the name of the parent session, not the name of the child session.
So this uncompressed tree:
becomes this:
IMO this does not make sense because the compact feature eliminates the parent when there is only one child.
It does not eliminate the child.
The text was updated successfully, but these errors were encountered: