debugger: Fix stack frame filter not persisting between sessions (#44352)

This bug was caused by using two separate keys for writing/reading from
the KVP database. The bug didn't show up in my debug build because there
was an old entry of a valid key.

I added an integration test for this feature to prevent future
regressions as well.

Release Notes:

- debugger: Fix a bug where the stack frame filter state wouldn't
persist between sessions
This commit is contained in:
Anthony Eid
2025-12-08 01:43:30 +00:00
committed by GitHub
parent d1e45e27de
commit 63cc90cd2c
3 changed files with 208 additions and 17 deletions
+5
View File
@@ -6069,6 +6069,11 @@ impl Workspace {
.on_action(cx.listener(Workspace::cancel))
}
#[cfg(any(test, feature = "test-support"))]
pub fn set_random_database_id(&mut self) {
self.database_id = Some(WorkspaceId(Uuid::new_v4().as_u64_pair().0 as i64));
}
#[cfg(any(test, feature = "test-support"))]
pub fn test_new(project: Entity<Project>, window: &mut Window, cx: &mut Context<Self>) -> Self {
use node_runtime::NodeRuntime;