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:
parent
b5c2b25a76
commit
19b6892c8d
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue