debugger: Don't try to open <node_internals> paths (#31524)

The JS DAP returns these, and they don't point to anything real on the
filesystem.

Release Notes:

- N/A
This commit is contained in:
Cole Miller
2025-05-27 15:32:48 +00:00
committed by GitHub
parent b5c2b25a76
commit 19b6892c8d
@@ -250,6 +250,9 @@ impl StackFrameList {
let Some(abs_path) = Self::abs_path_from_stack_frame(&stack_frame) else {
return Task::ready(Err(anyhow!("Project path not found")));
};
if abs_path.starts_with("<node_internals>") {
return Task::ready(Ok(()));
}
let row = stack_frame.line.saturating_sub(1) as u32;
cx.emit(StackFrameListEvent::SelectedStackFrameChanged(
stack_frame_id,