File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,11 @@ impl StackFrameList {
317
317
. supports_restart_frame
318
318
. unwrap_or_default ( ) ;
319
319
320
+ let origin = stack_frame
321
+ . source
322
+ . to_owned ( )
323
+ . and_then ( |source| source. origin ) ;
324
+
320
325
h_flex ( )
321
326
. rounded_md ( )
322
327
. justify_between ( )
@@ -325,7 +330,18 @@ impl StackFrameList {
325
330
. id ( ( "stack-frame" , stack_frame. id ) )
326
331
. tooltip ( {
327
332
let formatted_path = formatted_path. clone ( ) ;
328
- move |cx| Tooltip :: text ( formatted_path. clone ( ) , cx)
333
+ move |cx| {
334
+ cx. new_view ( |_| {
335
+ let mut tooltip = Tooltip :: new ( formatted_path. clone ( ) ) ;
336
+
337
+ if let Some ( origin) = & origin {
338
+ tooltip = tooltip. meta ( origin) ;
339
+ }
340
+
341
+ tooltip
342
+ } )
343
+ . into ( )
344
+ }
329
345
} )
330
346
. p_1 ( )
331
347
. when ( is_selected_frame, |this| {
You can’t perform that action at this time.
0 commit comments