Debugger: Add stop on entry support to debug adapter configs (#27942)

This PR adds passing in `stop_on_entry` to debug configs in debug.json
instead of going through initialization args.

This has two benefits:

1. It's more streamlined to a user since every internal adapter supports
`stop_on_entry` for launch requests and Go's adapter supports it for
attach requests too.
2. It will allow @osiewicz `NewSesssionModal` PR to use this field for
the stop on entry checkbox.

Release Notes:

- N/A
This commit is contained in:
Anthony Eid 2025-04-02 13:45:26 -04:00 committed by GitHub
parent e1a8a31fa4
commit 0ba8432b0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 25 additions and 2 deletions

View file

@ -161,6 +161,7 @@ impl Render for InertState {
initialize_args: None,
args: Default::default(),
locator: None,
stop_on_entry: None,
},
});
} else {
@ -324,6 +325,7 @@ impl InertState {
args: Default::default(),
locator: None,
tcp_connection: Some(TCPHost::default()),
stop_on_entry: None,
};
let _ = self.workspace.update(cx, |workspace, cx| {

View file

@ -90,6 +90,7 @@ async fn test_show_attach_modal_and_select_process(
initialize_args: None,
tcp_connection: Some(TCPHost::default()),
locator: None,
stop_on_entry: None,
args: Default::default(),
},
vec![