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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user