debugger: Add support for label presentation hints for stack frames (#32719)
Release Notes: - debugger: Add support for `Label` stack frame kinds Co-authored-by: Remco Smits <djsmits12@gmail.com>
This commit is contained in:
parent
6650be8e0f
commit
feef68bec7
3 changed files with 72 additions and 23 deletions
|
@ -191,7 +191,10 @@ async fn test_basic_fetch_initial_scope_and_variables(
|
|||
running_state.update(cx, |running_state, cx| {
|
||||
let (stack_frame_list, stack_frame_id) =
|
||||
running_state.stack_frame_list().update(cx, |list, _| {
|
||||
(list.flatten_entries(true), list.opened_stack_frame_id())
|
||||
(
|
||||
list.flatten_entries(true, true),
|
||||
list.opened_stack_frame_id(),
|
||||
)
|
||||
});
|
||||
|
||||
assert_eq!(stack_frames, stack_frame_list);
|
||||
|
@ -432,7 +435,10 @@ async fn test_fetch_variables_for_multiple_scopes(
|
|||
running_state.update(cx, |running_state, cx| {
|
||||
let (stack_frame_list, stack_frame_id) =
|
||||
running_state.stack_frame_list().update(cx, |list, _| {
|
||||
(list.flatten_entries(true), list.opened_stack_frame_id())
|
||||
(
|
||||
list.flatten_entries(true, true),
|
||||
list.opened_stack_frame_id(),
|
||||
)
|
||||
});
|
||||
|
||||
assert_eq!(Some(1), stack_frame_id);
|
||||
|
@ -1459,7 +1465,10 @@ async fn test_variable_list_only_sends_requests_when_rendering(
|
|||
running_state.update(cx, |running_state, cx| {
|
||||
let (stack_frame_list, stack_frame_id) =
|
||||
running_state.stack_frame_list().update(cx, |list, _| {
|
||||
(list.flatten_entries(true), list.opened_stack_frame_id())
|
||||
(
|
||||
list.flatten_entries(true, true),
|
||||
list.opened_stack_frame_id(),
|
||||
)
|
||||
});
|
||||
|
||||
assert_eq!(Some(1), stack_frame_id);
|
||||
|
@ -1741,7 +1750,10 @@ async fn test_it_fetches_scopes_variables_when_you_select_a_stack_frame(
|
|||
running_state.update(cx, |running_state, cx| {
|
||||
let (stack_frame_list, stack_frame_id) =
|
||||
running_state.stack_frame_list().update(cx, |list, _| {
|
||||
(list.flatten_entries(true), list.opened_stack_frame_id())
|
||||
(
|
||||
list.flatten_entries(true, true),
|
||||
list.opened_stack_frame_id(),
|
||||
)
|
||||
});
|
||||
|
||||
let variable_list = running_state.variable_list().read(cx);
|
||||
|
@ -1796,7 +1808,10 @@ async fn test_it_fetches_scopes_variables_when_you_select_a_stack_frame(
|
|||
running_state.update(cx, |running_state, cx| {
|
||||
let (stack_frame_list, stack_frame_id) =
|
||||
running_state.stack_frame_list().update(cx, |list, _| {
|
||||
(list.flatten_entries(true), list.opened_stack_frame_id())
|
||||
(
|
||||
list.flatten_entries(true, true),
|
||||
list.opened_stack_frame_id(),
|
||||
)
|
||||
});
|
||||
|
||||
let variable_list = running_state.variable_list().read(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue