debugger: Add a tooltip to the session picker with the session ID (#33331)

This helps correlate sessions in the picker with entries in the debug
adapter logs view.

Release Notes:

- N/A
This commit is contained in:
Cole Miller authored and GitHub committed 2025-06-25 02:20:31 +00:00
1 parent 6d7b7d9451
commit 76dda5b147
1 file changed
+3 -1
+3 -1
View File
@@ -11,7 +11,7 @@ use project::worktree_store::WorktreeStore;
use rpc::proto;
use running::RunningState;
use std::{cell::OnceCell, sync::OnceLock};
use ui::{Indicator, prelude::*};
use ui::{Indicator, Tooltip, prelude::*};
use workspace::{
CollaboratorId, FollowableItem, ViewId, Workspace,
item::{self, Item},
@@ -153,6 +153,8 @@ impl DebugSession {
};
h_flex()
.id("session-label")
.tooltip(Tooltip::text(format!("Session {}", self.session_id(cx).0,)))
.ml(depth * px(16.0))
.gap_2()
.when_some(icon, |this, indicator| this.child(indicator))