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 Kitchen Sink and Auto Height Editor stories (#10904)
Michael Angerman8ae4c3277f30
diff --git a/crates/storybook/src/stories/picker.rs b/crates/storybook/src/stories/picker.rsindex 1aceeea9b22..ca156ba7306 100644--- a/crates/storybook/src/stories/picker.rs+++ b/crates/storybook/src/stories/picker.rs@@ -1,7 +1,6 @@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};@@ -191,7 +190,6 @@ impl PickerStory {]);delegate.update_matches("".into(), cx).detach();- Project::init_settings(cx);let picker = Picker::uniform_list(delegate, cx);picker.focus(cx);pickerdiff --git a/crates/storybook/src/storybook.rs b/crates/storybook/src/storybook.rsindex 77b0a38c3db..015b4765fb5 100644--- a/crates/storybook/src/storybook.rs+++ b/crates/storybook/src/storybook.rs@@ -10,6 +10,7 @@ use gpui::{div, px, size, AnyView, AppContext, Bounds, Render, ViewContext, VisualContext, WindowOptions,};use log::LevelFilter;+use project::Project;use settings::{default_settings, KeymapFile, Settings, SettingsStore};use simplelog::SimpleLogger;use strum::IntoEnumIterator;@@ -80,6 +81,7 @@ fn main() {language::init(cx);editor::init(cx);+ Project::init_settings(cx);init(cx);load_storybook_keymap(cx);cx.set_menus(app_menus());