Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update actions to open GitHub issue templates (#23747)
Joseph T. Lyons06424c960882
diff --git a/crates/feedback/src/feedback.rs b/crates/feedback/src/feedback.rsindex 0389fcbec3d..295114c0cb4 100644--- a/crates/feedback/src/feedback.rs+++ b/crates/feedback/src/feedback.rs@@ -21,25 +21,18 @@ const fn zed_repo_url() -> &'static str {"https://github.com/zed-industries/zed"}-fn request_feature_url(specs: &SystemSpecs) -> String {- format!(- concat!(- "https://github.com/zed-industries/zed/issues/new",- "?labels=admin+read%2Ctriage%2Cenhancement",- "&template=0_feature_request.yml",- "&environment={}"- ),- urlencoding::encode(&specs.to_string())- )+fn request_feature_url() -> String {+ "https://github.com/zed-industries/zed/issues/new?template=0_feature_request.yml".to_string()}fn file_bug_report_url(specs: &SystemSpecs) -> String {format!(concat!("https://github.com/zed-industries/zed/issues/new",- "?labels=admin+read%2Ctriage%2Cbug",- "&template=1_bug_report.yml",- "&environment={}"+ "?",+ "template=1_bug_report.yml",+ "&",+ "environment={}"),urlencoding::encode(&specs.to_string()))@@ -74,11 +67,9 @@ pub fn init(cx: &mut App) {.detach();}).register_action(|_, _: &RequestFeature, window, cx| {- let specs = SystemSpecs::new(window, cx);cx.spawn_in(window, |_, mut cx| async move {- let specs = specs.await;cx.update(|_, cx| {- cx.open_url(&request_feature_url(&specs));+ cx.open_url(&request_feature_url());}).log_err();})