storybook: Fix crash in Kitchen Sink and Auto Height Editor stories (#10904)
The *Kitchen Sink* as well as the *Auto Height Editor* story is crashing for the same reason that the Picker story was crashing... ### Related Topics - Picker Story PR : #10793 - Picker Story Issue : #10739 - Introduced By : #10620 Release Notes: - N/A
This commit is contained in:
parent
f6eaa8b00f
commit
8ae4c3277f
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
picker
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue