-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
add a 'managedByParent' property to 'DebugSessionOptions' #128058
Comments
Maybe it should be |
I agree with @connor4312 that adding /**
* Options for {@link debug.startDebugging starting a debug session}.
*/
export interface DebugSessionOptions {
/**
... other options
*/
/**
* Controls whether lifecycle requests like 'restart' are sent to the newly created session or its parent session.
* By default (if the property is false or missing), lifecycle requests are sent to the new session.
* This property is ignored if the session has no parent session.
*/
lifecycleManagedByParent?: boolean;
} |
Proposal from above was discussed and approved on API call from July 13. |
Since VS Code has not yet implemented this API, it does not make sense to verify it and add it to the release notes for the July 2021 release. |
VS Code now supports the |
…eManagedByParent Fixes microsoft/vscode#128058
I've adopted this in js-debug. Now that we have explicit signaling here, should we create a debt item to remove the previous lifecycle handling heuristics that we added with compact sessions and whatnot? |
@connor4312 you are proposing to remove the "lifecycle handling heuristics code" but not "compact sessions", right? |
That's right |
@connor4312 I've created debt item #131442 for this. |
When creating child debug sessions programmatically, we need a way to let VS Code know how to manage the lifecycle of the newly created children. Today lifecycle requests (like "restart") are sent to the session itself. But there are use cases where the parent should be in control.
@connor4312 does this proposed API and the wording makes sense to you?
The text was updated successfully, but these errors were encountered: