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.

assistant: Remove feature flag for terminal inline assistant (#15432)

Bennet Bo Fenner0b4afe518b9d
diff --git a/Cargo.lock b/Cargo.lock
index 7759a586509..ea28e44fb45 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -410,7 +410,6 @@ dependencies = [
"ctor",
"editor",
"env_logger",
- "feature_flags",
"fs",
"futures 0.3.28",
"fuzzy",
diff --git a/crates/assistant/Cargo.toml b/crates/assistant/Cargo.toml
index 6e7bef88ca1..1f86d17dc26 100644
--- a/crates/assistant/Cargo.toml
+++ b/crates/assistant/Cargo.toml
@@ -34,7 +34,6 @@ collections.workspace = true
command_palette_hooks.workspace = true
completion.workspace = true
editor.workspace = true
-feature_flags.workspace = true
fs.workspace = true
futures.workspace = true
fuzzy.workspace = true
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs
index ec72cbd1ff7..09e308f6021 100644
--- a/crates/assistant/src/assistant_panel.rs
+++ b/crates/assistant/src/assistant_panel.rs
@@ -644,11 +644,6 @@ impl AssistantPanel {
.focus_handle(cx)
.contains_focused(cx)
{
- use feature_flags::FeatureFlagAppExt;
- if !cx.has_flag::<feature_flags::TerminalInlineAssist>() {
- return None;
- }
-
if let Some(terminal_view) = terminal_panel
.read(cx)
.pane()
diff --git a/crates/feature_flags/src/feature_flags.rs b/crates/feature_flags/src/feature_flags.rs
index c9deabe5a99..cb37ca392e7 100644
--- a/crates/feature_flags/src/feature_flags.rs
+++ b/crates/feature_flags/src/feature_flags.rs
@@ -43,11 +43,6 @@ impl FeatureFlag for LanguageModels {
const NAME: &'static str = "language-models";
}
-pub struct TerminalInlineAssist {}
-impl FeatureFlag for TerminalInlineAssist {
- const NAME: &'static str = "terminal-inline-assist";
-}
-
pub struct GroupedDiagnostics {}
impl FeatureFlag for GroupedDiagnostics {
const NAME: &'static str = "grouped-diagnostics";