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
This commit is contained in:
parent
f9472ce90b
commit
400ae9c650
1 changed files with 6 additions and 0 deletions
|
@ -133,6 +133,7 @@ enum Feature {
|
||||||
Vim,
|
Vim,
|
||||||
LanguageC,
|
LanguageC,
|
||||||
LanguageCpp,
|
LanguageCpp,
|
||||||
|
LanguageGo,
|
||||||
LanguagePython,
|
LanguagePython,
|
||||||
LanguageRust,
|
LanguageRust,
|
||||||
}
|
}
|
||||||
|
@ -145,6 +146,7 @@ fn keywords_by_feature() -> &'static BTreeMap<Feature, Vec<&'static str>> {
|
||||||
(Feature::Vim, vec!["vim"]),
|
(Feature::Vim, vec!["vim"]),
|
||||||
(Feature::LanguageC, vec!["c", "clang"]),
|
(Feature::LanguageC, vec!["c", "clang"]),
|
||||||
(Feature::LanguageCpp, vec!["c++", "cpp", "clang"]),
|
(Feature::LanguageCpp, vec!["c++", "cpp", "clang"]),
|
||||||
|
(Feature::LanguageGo, vec!["go", "golang"]),
|
||||||
(Feature::LanguagePython, vec!["python", "py"]),
|
(Feature::LanguagePython, vec!["python", "py"]),
|
||||||
(Feature::LanguageRust, vec!["rust", "rs"]),
|
(Feature::LanguageRust, vec!["rust", "rs"]),
|
||||||
])
|
])
|
||||||
|
@ -974,6 +976,10 @@ impl ExtensionsPage {
|
||||||
FeatureUpsell::new(telemetry, "C++ support is built-in to Zed!")
|
FeatureUpsell::new(telemetry, "C++ support is built-in to Zed!")
|
||||||
.docs_url("https://zed.dev/docs/languages/cpp")
|
.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 => {
|
Feature::LanguagePython => {
|
||||||
FeatureUpsell::new(telemetry, "Python support is built-in to Zed!")
|
FeatureUpsell::new(telemetry, "Python support is built-in to Zed!")
|
||||||
.docs_url("https://zed.dev/docs/languages/python")
|
.docs_url("https://zed.dev/docs/languages/python")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue