debugger: Run build in terminal (#29645)

Currently contains the pre-work of making sessions creatable without a
definition, but still need to change the spawn in terminal
to use the running session

Release Notes:

- N/A

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
Conrad Irwin
2025-05-05 20:08:14 +00:00
committed by GitHub
co-authored by Piotr Osiewicz
parent c12e6376b8
commit ff215b4f11
12 changed files with 695 additions and 622 deletions
@@ -444,11 +444,13 @@ async fn test_handle_start_debugging_request(
.read(cx)
.session(cx);
let parent_session = active_session.read(cx).parent_session().unwrap();
let mut original_binary = parent_session.read(cx).binary().clone();
original_binary.request_args = StartDebuggingRequestArguments {
request: StartDebuggingRequestArgumentsRequest::Launch,
configuration: fake_config.clone(),
};
assert_eq!(
active_session.read(cx).definition(),
parent_session.read(cx).definition()
);
assert_eq!(active_session.read(cx).binary(), &original_binary);
})
.unwrap();