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
32
Cargo.lock
generated
32
Cargo.lock
generated
|
@ -3184,33 +3184,6 @@ dependencies = [
|
||||||
"workspace-hack",
|
"workspace-hack",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "component_preview"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"agent",
|
|
||||||
"anyhow",
|
|
||||||
"assistant_tool",
|
|
||||||
"client",
|
|
||||||
"collections",
|
|
||||||
"component",
|
|
||||||
"db",
|
|
||||||
"futures 0.3.31",
|
|
||||||
"gpui",
|
|
||||||
"indoc",
|
|
||||||
"languages",
|
|
||||||
"log",
|
|
||||||
"notifications",
|
|
||||||
"project",
|
|
||||||
"prompt_store",
|
|
||||||
"serde",
|
|
||||||
"ui",
|
|
||||||
"ui_input",
|
|
||||||
"util",
|
|
||||||
"workspace",
|
|
||||||
"workspace-hack",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "concurrent-queue"
|
name = "concurrent-queue"
|
||||||
version = "2.5.0"
|
version = "2.5.0"
|
||||||
|
@ -18564,6 +18537,7 @@ dependencies = [
|
||||||
"assets",
|
"assets",
|
||||||
"assistant_context_editor",
|
"assistant_context_editor",
|
||||||
"assistant_settings",
|
"assistant_settings",
|
||||||
|
"assistant_tool",
|
||||||
"assistant_tools",
|
"assistant_tools",
|
||||||
"async-watch",
|
"async-watch",
|
||||||
"audio",
|
"audio",
|
||||||
|
@ -18580,7 +18554,7 @@ dependencies = [
|
||||||
"collab_ui",
|
"collab_ui",
|
||||||
"collections",
|
"collections",
|
||||||
"command_palette",
|
"command_palette",
|
||||||
"component_preview",
|
"component",
|
||||||
"copilot",
|
"copilot",
|
||||||
"dap",
|
"dap",
|
||||||
"dap_adapters",
|
"dap_adapters",
|
||||||
|
@ -18606,6 +18580,7 @@ dependencies = [
|
||||||
"gpui_tokio",
|
"gpui_tokio",
|
||||||
"http_client",
|
"http_client",
|
||||||
"image_viewer",
|
"image_viewer",
|
||||||
|
"indoc",
|
||||||
"inline_completion_button",
|
"inline_completion_button",
|
||||||
"install_cli",
|
"install_cli",
|
||||||
"journal",
|
"journal",
|
||||||
|
@ -18669,6 +18644,7 @@ dependencies = [
|
||||||
"tree-sitter-md",
|
"tree-sitter-md",
|
||||||
"tree-sitter-rust",
|
"tree-sitter-rust",
|
||||||
"ui",
|
"ui",
|
||||||
|
"ui_input",
|
||||||
"ui_prompt",
|
"ui_prompt",
|
||||||
"url",
|
"url",
|
||||||
"urlencoding",
|
"urlencoding",
|
||||||
|
|
|
@ -31,7 +31,6 @@ members = [
|
||||||
"crates/command_palette",
|
"crates/command_palette",
|
||||||
"crates/command_palette_hooks",
|
"crates/command_palette_hooks",
|
||||||
"crates/component",
|
"crates/component",
|
||||||
"crates/component_preview",
|
|
||||||
"crates/context_server",
|
"crates/context_server",
|
||||||
"crates/copilot",
|
"crates/copilot",
|
||||||
"crates/credentials_provider",
|
"crates/credentials_provider",
|
||||||
|
@ -238,7 +237,6 @@ collections = { path = "crates/collections" }
|
||||||
command_palette = { path = "crates/command_palette" }
|
command_palette = { path = "crates/command_palette" }
|
||||||
command_palette_hooks = { path = "crates/command_palette_hooks" }
|
command_palette_hooks = { path = "crates/command_palette_hooks" }
|
||||||
component = { path = "crates/component" }
|
component = { path = "crates/component" }
|
||||||
component_preview = { path = "crates/component_preview" }
|
|
||||||
context_server = { path = "crates/context_server" }
|
context_server = { path = "crates/context_server" }
|
||||||
copilot = { path = "crates/copilot" }
|
copilot = { path = "crates/copilot" }
|
||||||
credentials_provider = { path = "crates/credentials_provider" }
|
credentials_provider = { path = "crates/credentials_provider" }
|
||||||
|
|
|
@ -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
|
assets.workspace = true
|
||||||
assistant_context_editor.workspace = true
|
assistant_context_editor.workspace = true
|
||||||
assistant_settings.workspace = true
|
assistant_settings.workspace = true
|
||||||
|
assistant_tool.workspace = true
|
||||||
assistant_tools.workspace = true
|
assistant_tools.workspace = true
|
||||||
async-watch.workspace = true
|
async-watch.workspace = true
|
||||||
audio.workspace = true
|
audio.workspace = true
|
||||||
|
@ -38,7 +39,7 @@ client.workspace = true
|
||||||
collab_ui.workspace = true
|
collab_ui.workspace = true
|
||||||
collections.workspace = true
|
collections.workspace = true
|
||||||
command_palette.workspace = true
|
command_palette.workspace = true
|
||||||
component_preview.workspace = true
|
component.workspace = true
|
||||||
copilot.workspace = true
|
copilot.workspace = true
|
||||||
dap_adapters.workspace = true
|
dap_adapters.workspace = true
|
||||||
debugger_ui.workspace = true
|
debugger_ui.workspace = true
|
||||||
|
@ -63,6 +64,7 @@ gpui = { workspace = true, features = ["wayland", "x11", "font-kit"] }
|
||||||
gpui_tokio.workspace = true
|
gpui_tokio.workspace = true
|
||||||
http_client.workspace = true
|
http_client.workspace = true
|
||||||
image_viewer.workspace = true
|
image_viewer.workspace = true
|
||||||
|
indoc.workspace = true
|
||||||
inline_completion_button.workspace = true
|
inline_completion_button.workspace = true
|
||||||
install_cli.workspace = true
|
install_cli.workspace = true
|
||||||
journal.workspace = true
|
journal.workspace = true
|
||||||
|
@ -124,6 +126,7 @@ time.workspace = true
|
||||||
title_bar.workspace = true
|
title_bar.workspace = true
|
||||||
toolchain_selector.workspace = true
|
toolchain_selector.workspace = true
|
||||||
ui.workspace = true
|
ui.workspace = true
|
||||||
|
ui_input.workspace = true
|
||||||
ui_prompt.workspace = true
|
ui_prompt.workspace = true
|
||||||
url.workspace = true
|
url.workspace = true
|
||||||
urlencoding.workspace = true
|
urlencoding.workspace = true
|
||||||
|
|
|
@ -658,7 +658,7 @@ fn main() {
|
||||||
|
|
||||||
let app_state = app_state.clone();
|
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| {
|
cx.spawn(async move |cx| {
|
||||||
while let Some(urls) = open_rx.next().await {
|
while let Some(urls) = open_rx.next().await {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
mod app_menus;
|
mod app_menus;
|
||||||
|
pub mod component_preview;
|
||||||
pub mod inline_completion_registry;
|
pub mod inline_completion_registry;
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
pub(crate) mod mac_only_instance;
|
pub(crate) mod mac_only_instance;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue