chore: Move component_preview into zed (#30480)
This improves our build times by ~0.2s Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
e4525b80f8
commit
5ba1d3edec
11 changed files with 10 additions and 71 deletions
|
@ -1,38 +0,0 @@
|
|||
[package]
|
||||
name = "component_preview"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
publish.workspace = true
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
path = "src/component_preview.rs"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
[dependencies]
|
||||
agent.workspace = true
|
||||
anyhow.workspace = true
|
||||
assistant_tool.workspace = true
|
||||
client.workspace = true
|
||||
collections.workspace = true
|
||||
component.workspace = true
|
||||
db.workspace = true
|
||||
futures.workspace = true
|
||||
gpui.workspace = true
|
||||
indoc.workspace = true
|
||||
languages.workspace = true
|
||||
log.workspace = true
|
||||
notifications.workspace = true
|
||||
project.workspace = true
|
||||
prompt_store.workspace = true
|
||||
serde.workspace = true
|
||||
ui.workspace = true
|
||||
ui_input.workspace = true
|
||||
util.workspace = true
|
||||
workspace-hack.workspace = true
|
||||
workspace.workspace = true
|
|
@ -1 +0,0 @@
|
|||
../../LICENSE-GPL
|
|
@ -22,6 +22,7 @@ askpass.workspace = true
|
|||
assets.workspace = true
|
||||
assistant_context_editor.workspace = true
|
||||
assistant_settings.workspace = true
|
||||
assistant_tool.workspace = true
|
||||
assistant_tools.workspace = true
|
||||
async-watch.workspace = true
|
||||
audio.workspace = true
|
||||
|
@ -38,7 +39,7 @@ client.workspace = true
|
|||
collab_ui.workspace = true
|
||||
collections.workspace = true
|
||||
command_palette.workspace = true
|
||||
component_preview.workspace = true
|
||||
component.workspace = true
|
||||
copilot.workspace = true
|
||||
dap_adapters.workspace = true
|
||||
debugger_ui.workspace = true
|
||||
|
@ -63,6 +64,7 @@ gpui = { workspace = true, features = ["wayland", "x11", "font-kit"] }
|
|||
gpui_tokio.workspace = true
|
||||
http_client.workspace = true
|
||||
image_viewer.workspace = true
|
||||
indoc.workspace = true
|
||||
inline_completion_button.workspace = true
|
||||
install_cli.workspace = true
|
||||
journal.workspace = true
|
||||
|
@ -124,6 +126,7 @@ time.workspace = true
|
|||
title_bar.workspace = true
|
||||
toolchain_selector.workspace = true
|
||||
ui.workspace = true
|
||||
ui_input.workspace = true
|
||||
ui_prompt.workspace = true
|
||||
url.workspace = true
|
||||
urlencoding.workspace = true
|
||||
|
|
|
@ -658,7 +658,7 @@ fn main() {
|
|||
|
||||
let app_state = app_state.clone();
|
||||
|
||||
component_preview::init(app_state.clone(), cx);
|
||||
crate::zed::component_preview::init(app_state.clone(), cx);
|
||||
|
||||
cx.spawn(async move |cx| {
|
||||
while let Some(urls) = open_rx.next().await {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
mod app_menus;
|
||||
pub mod component_preview;
|
||||
pub mod inline_completion_registry;
|
||||
#[cfg(target_os = "macos")]
|
||||
pub(crate) mod mac_only_instance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue