storybook: Fix auto_height_editor story (#27653)

This is a fix for this error when trying to run `auto_height_editor`
story:

```sh
thread 'main' panicked at C:\Users\x\dev\zed\crates\settings\src\settings_store.rs:363:32:
unregistered setting type workspace::workspace_settings::WorkspaceSettings
```

Release Notes:

- N/A
This commit is contained in:
loczek 2025-03-28 13:42:44 +01:00 committed by GitHub
parent 1a4ba59d4e
commit a201263448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,7 @@ log.workspace = true
menu.workspace = true
picker.workspace = true
project.workspace = true
reqwest_client.workspace = true
rust-embed.workspace = true
settings.workspace = true
simplelog.workspace = true
@ -35,7 +36,7 @@ strum = { workspace = true, features = ["derive"] }
theme.workspace = true
title_bar = { workspace = true, features = ["stories"] }
ui = { workspace = true, features = ["stories"] }
reqwest_client.workspace = true
workspace.workspace = true
[dev-dependencies]
gpui = { workspace = true, features = ["test-support"] }

View file

@ -19,6 +19,7 @@ use simplelog::SimpleLogger;
use strum::IntoEnumIterator;
use theme::{ThemeRegistry, ThemeSettings};
use ui::prelude::*;
use workspace;
use crate::app_menus::app_menus;
use crate::assets::Assets;
@ -83,6 +84,7 @@ fn main() {
language::init(cx);
editor::init(cx);
Project::init_settings(cx);
workspace::init_settings(cx);
init(cx);
load_storybook_keymap(cx);
cx.set_menus(app_menus());