debugger beta: Autoscroll to recently saved debug scenario when saving a scenario (#31528)

I added a test to this too as one of my first steps of improving
`NewSessionModal`'s test coverage.


Release Notes:

- debugger beta: Select saved debug config when opening debug.json from
`NewSessionModal`
This commit is contained in:
Anthony Eid
2025-05-27 21:35:17 +03:00
committed by GitHub
parent 94c006236e
commit 86b75759d1
3 changed files with 319 additions and 137 deletions
+5 -1
View File
@@ -270,7 +270,11 @@ pub fn task_contexts(
.read(cx)
.worktree_for_id(*worktree_id, cx)
.map_or(false, |worktree| is_visible_directory(&worktree, cx))
});
})
.or(workspace
.visible_worktrees(cx)
.next()
.map(|tree| tree.read(cx).id()));
let active_editor = active_item.and_then(|item| item.act_as::<Editor>(cx));