From 400ae9c6505a2385b64673af3d9df9249127808a Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 16 Jul 2024 13:33:03 -0400 Subject: [PATCH] extensions_ui: Add feature upsell for Go (#14586) This PR adds a feature upsell for Go when searching for it in the extensions view. Release Notes: - N/A --- crates/extensions_ui/src/extensions_ui.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/extensions_ui/src/extensions_ui.rs b/crates/extensions_ui/src/extensions_ui.rs index 782b9d98b7..7af2f128d5 100644 --- a/crates/extensions_ui/src/extensions_ui.rs +++ b/crates/extensions_ui/src/extensions_ui.rs @@ -133,6 +133,7 @@ enum Feature { Vim, LanguageC, LanguageCpp, + LanguageGo, LanguagePython, LanguageRust, } @@ -145,6 +146,7 @@ fn keywords_by_feature() -> &'static BTreeMap> { (Feature::Vim, vec!["vim"]), (Feature::LanguageC, vec!["c", "clang"]), (Feature::LanguageCpp, vec!["c++", "cpp", "clang"]), + (Feature::LanguageGo, vec!["go", "golang"]), (Feature::LanguagePython, vec!["python", "py"]), (Feature::LanguageRust, vec!["rust", "rs"]), ]) @@ -974,6 +976,10 @@ impl ExtensionsPage { FeatureUpsell::new(telemetry, "C++ support is built-in to Zed!") .docs_url("https://zed.dev/docs/languages/cpp") } + Feature::LanguageGo => { + FeatureUpsell::new(telemetry, "Go support is built-in to Zed!") + .docs_url("https://zed.dev/docs/languages/go") + } Feature::LanguagePython => { FeatureUpsell::new(telemetry, "Python support is built-in to Zed!") .docs_url("https://zed.dev/docs/languages/python")