debugger: Fix removal of running sessions when spawning a debug session (#30384)

Fixed regression introduced in
https://github.com/zed-industries/zed/pull/29646/files#diff-85cbb0a26f1949431ec63870fc2d52b583227a5a00b6e10b64dcdb7fe7ef13afL314

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-05-10 00:52:43 +02:00 committed by GitHub
parent 074e78301a
commit 79ba22673b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,7 +291,7 @@ impl DebugPanel {
let (debug_session, workspace) = this.update_in(cx, |this, window, cx| { let (debug_session, workspace) = this.update_in(cx, |this, window, cx| {
this.sessions.retain(|session| { this.sessions.retain(|session| {
session !session
.read(cx) .read(cx)
.running_state() .running_state()
.read(cx) .read(cx)