Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
storybook: Fix crash in Picker story (#10793)
Michael Angerman4ab48c689f95
diff --git a/Cargo.lock b/Cargo.lockindex 57466fb0f79..3b243f7d590 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -9418,6 +9418,7 @@ dependencies = ["log","menu","picker",+ "project","rust-embed","settings","simplelog",diff --git a/crates/storybook/Cargo.toml b/crates/storybook/Cargo.tomlindex 5beea54061c..5b19171349e 100644--- a/crates/storybook/Cargo.toml+++ b/crates/storybook/Cargo.toml@@ -26,6 +26,7 @@ language.workspace = truelog.workspace = truemenu.workspace = truepicker.workspace = true+project.workspace = truerust-embed.workspace = truesettings.workspace = truesimplelog = "0.9"diff --git a/crates/storybook/src/stories/picker.rs b/crates/storybook/src/stories/picker.rsindex ca156ba7306..1aceeea9b22 100644--- a/crates/storybook/src/stories/picker.rs+++ b/crates/storybook/src/stories/picker.rs@@ -1,6 +1,7 @@use fuzzy::StringMatchCandidate;use gpui::{div, prelude::*, KeyBinding, Render, SharedString, Styled, Task, View, WindowContext};use picker::{Picker, PickerDelegate};+use project::Project;use std::sync::Arc;use ui::{prelude::*, ListItemSpacing};use ui::{Label, ListItem};@@ -190,6 +191,7 @@ impl PickerStory {]);delegate.update_matches("".into(), cx).detach();+ Project::init_settings(cx);let picker = Picker::uniform_list(delegate, cx);picker.focus(cx);picker