ZIm/crates/dap/src
gcp-cherry-pick-bot[bot] 87c9f6a52e
debugger: Send initialized event from fake server at a more realistic time (cherry-pick #35446) (#35447)
Cherry-picked debugger: Send initialized event from fake server at a
more realistic time (#35446)

The spec says:

> ⬅️ Initialized Event
> This event indicates that the debug adapter is ready to accept
configuration requests (e.g. setBreakpoints, setExceptionBreakpoints).
>
> A debug adapter is expected to send this event when it is ready to
accept configuration requests (but not before the initialize request has
finished).

Previously in tests, `intercept_debug_sessions` was just spawning off a
background task to send the event after setting up the client, so the
event wasn't actually synchronized with the flow of messages in the way
the spec says it should be. This PR makes it so that the `FakeTransport`
injects the event right after a successful response to the initialize
request, and doesn't send it otherwise.

Release Notes:

- N/A

Co-authored-by: Cole Miller <cole@zed.dev>
2025-08-01 11:23:30 -04:00
..
adapters.rs debugger: Improve appearance of session list for JavaScript debugging (#34322) 2025-07-12 15:56:05 +00:00
client.rs debugger: Send initialized event from fake server at a more realistic time (cherry-pick #35446) (#35447) 2025-08-01 11:23:30 -04:00
dap.rs extension: Another batch of updates for DAP extension API (#32809) 2025-06-16 21:34:05 +02:00
debugger_settings.rs debugger: Enable setting debug panel dock position to the side (#29914) 2025-05-05 21:27:20 +00:00
inline_value.rs debugger: Generate inline values based on debugger.scm file (#33081) 2025-06-24 18:24:43 +00:00
proto_conversions.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
registry.rs Misc code cleanups accumulated while working on other changes (#34787) 2025-07-20 23:22:13 +00:00
transport.rs debugger: Send initialized event from fake server at a more realistic time (cherry-pick #35446) (#35447) 2025-08-01 11:23:30 -04:00