From 40290a9a4240cfcaa4090374e5182aa8e2cf80ba Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Mon, 24 Oct 2022 13:18:02 -0700 Subject: [PATCH] Added notify call --- crates/db/dev-db.db | Bin 0 -> 12288 bytes crates/db/src/test/generate-db.rs | 6 ++++++ crates/project_panel/src/project_panel.rs | 1 + 3 files changed, 7 insertions(+) create mode 100644 crates/db/dev-db.db create mode 100644 crates/db/src/test/generate-db.rs diff --git a/crates/db/dev-db.db b/crates/db/dev-db.db new file mode 100644 index 0000000000000000000000000000000000000000..199d0a20403efd47a58d5cada36a6079f1596cb2 GIT binary patch literal 12288 zcmeI%!AiqG5C-7cL~IR|^-_8Yj5h^QiZ5U+If${<7{Oi|BCb*z4K~|S!HZAl8uSlTvifOhk^PD_Mt<#ZFzwT-BSxp_9R9 zORvb$Bhn-Ny=epb5P$##AOHafKmY;|fB*y_0D=D}@S++W-&bD;Hhav?WS*9`nEuU9 zFAjqwH^>gS~Wqq literal 0 HcmV?d00001 diff --git a/crates/db/src/test/generate-db.rs b/crates/db/src/test/generate-db.rs new file mode 100644 index 0000000000..303549f3ec --- /dev/null +++ b/crates/db/src/test/generate-db.rs @@ -0,0 +1,6 @@ +// What do I want for testing: + +// - A command to run, that exercises the existing APIs to generate a database, which I can then +// use a sqlite browser to develop queries against. +// - A way to generate arbitrary database states which are then hooked into a dev build of rust for testing +// - diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index abd8f44603..b5d1d0caa3 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -375,6 +375,7 @@ impl ProjectPanel { } self.update_visible_entries(Some((worktree_id, entry_id)), cx); cx.focus_self(); + cx.notify(); } } }