Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Implement feedback action

Joseph T. Lyonsdec4cfa0b416
diff --git a/crates/feedback2/src/feedback2.rs b/crates/feedback2/src/feedback2.rs
index 382e449677f..1c58c7c51f0 100644
--- a/crates/feedback2/src/feedback2.rs
+++ b/crates/feedback2/src/feedback2.rs
@@ -1,6 +1,5 @@
use gpui::{actions, AppContext, ClipboardItem, PromptLevel};
use system_specs::SystemSpecs;
-// use system_specs::SystemSpecs;
use workspace::Workspace;
pub mod deploy_feedback_button;
@@ -48,15 +47,11 @@ pub fn init(cx: &mut AppContext) {
urlencoding::encode(&SystemSpecs::new(&cx).to_string())
);
cx.open_url(&url);
- });
+ })
+ .register_action(move |_, _: &OpenZedCommunityRepo, cx| {
+ let url = "https://github.com/zed-industries/community";
+ cx.open_url(&url);
+ });
})
.detach();
-
- // TODO
- // cx.add_global_action(open_zed_community_repo);
-}
-
-pub fn open_zed_community_repo(_: &OpenZedCommunityRepo, cx: &mut AppContext) {
- let url = "https://github.com/zed-industries/community";
- cx.open_url(&url);
}