debugger: Do not allow setting breakpoints in buffers without file storage (#27094)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2025-03-19 18:40:31 +01:00
committed by GitHub
parent d722067000
commit e03edc2a76
2 changed files with 19 additions and 7 deletions
+3
View File
@@ -6052,6 +6052,9 @@ impl Editor {
continue;
};
if buffer.read(cx).file().is_none() {
continue;
}
let breakpoints = breakpoint_store.read(cx).breakpoints(
&buffer,
Some(info.range.context.start..info.range.context.end),