Add an extensions installation view (#7689)
This PR adds a view for installing extensions within Zed. My subtasks: - [X] Page Extensions and assign in App Menu - [X] List extensions - [X] Button to Install/Uninstall - [x] Search Input to search in extensions registry API - [x] Get Extensions from API - [x] Action install to download extension and copy in /extensions folder - [x] Action uninstall to remove from /extensions folder - [x] Filtering - [x] Better UI Design Open to collab! Release Notes: - Added an extension installation view. Open it using the `zed: extensions` action in the command palette ([#7096](https://github.com/zed-industries/zed/issues/7096)). --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Carlos <foxkdev@gmail.com> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
33f713a8ab
commit
fecb5a82f1
12 changed files with 735 additions and 11 deletions
|
@ -23,7 +23,7 @@ assets.workspace = true
|
|||
assistant.workspace = true
|
||||
async-compression.workspace = true
|
||||
async-recursion = "0.3"
|
||||
async-tar = "0.4.2"
|
||||
async-tar.workspace = true
|
||||
async-trait.workspace = true
|
||||
audio.workspace = true
|
||||
auto_update.workspace = true
|
||||
|
@ -45,6 +45,7 @@ diagnostics.workspace = true
|
|||
editor.workspace = true
|
||||
env_logger.workspace = true
|
||||
extension.workspace = true
|
||||
extensions_ui.workspace = true
|
||||
feature_flags.workspace = true
|
||||
feedback.workspace = true
|
||||
file_finder.workspace = true
|
||||
|
|
|
@ -21,6 +21,7 @@ pub fn app_menus() -> Vec<Menu<'static>> {
|
|||
MenuItem::action("Select Theme", theme_selector::Toggle),
|
||||
],
|
||||
}),
|
||||
MenuItem::action("Extensions", extensions_ui::Extensions),
|
||||
MenuItem::action("Install CLI", install_cli::Install),
|
||||
MenuItem::separator(),
|
||||
MenuItem::action("Hide Zed", super::Hide),
|
||||
|
|
|
@ -173,7 +173,13 @@ fn main() {
|
|||
);
|
||||
assistant::init(cx);
|
||||
|
||||
extension::init(fs.clone(), languages.clone(), ThemeRegistry::global(cx), cx);
|
||||
extension::init(
|
||||
fs.clone(),
|
||||
http.clone(),
|
||||
languages.clone(),
|
||||
ThemeRegistry::global(cx),
|
||||
cx,
|
||||
);
|
||||
|
||||
load_user_themes_in_background(fs.clone(), cx);
|
||||
#[cfg(target_os = "macos")]
|
||||
|
@ -254,6 +260,7 @@ fn main() {
|
|||
feedback::init(cx);
|
||||
markdown_preview::init(cx);
|
||||
welcome::init(cx);
|
||||
extensions_ui::init(cx);
|
||||
|
||||
cx.set_menus(app_menus());
|
||||
initialize_workspace(app_state.clone(), cx);
|
||||
|
|
|
@ -2396,6 +2396,7 @@ mod tests {
|
|||
.unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
fn init_keymap_test(cx: &mut TestAppContext) -> Arc<AppState> {
|
||||
cx.update(|cx| {
|
||||
let app_state = AppState::test(cx);
|
||||
|
@ -2409,6 +2410,7 @@ mod tests {
|
|||
app_state
|
||||
})
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_base_keymap(cx: &mut gpui::TestAppContext) {
|
||||
let executor = cx.executor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue