assistant: Put /search
behind a feature flag (#15987)
This PR puts the `/search` slash command behind a feature flag. Release Notes: - N/A
This commit is contained in:
parent
8ba5207c6c
commit
fbc629df7d
2 changed files with 15 additions and 1 deletions
|
@ -5,6 +5,7 @@ use super::{
|
|||
};
|
||||
use anyhow::Result;
|
||||
use assistant_slash_command::{ArgumentCompletion, SlashCommandOutputSection};
|
||||
use feature_flags::FeatureFlag;
|
||||
use gpui::{AppContext, Task, WeakView};
|
||||
use language::{CodeLabel, LineEnding, LspAdapterDelegate};
|
||||
use semantic_index::SemanticIndex;
|
||||
|
@ -17,6 +18,12 @@ use ui::{prelude::*, IconName};
|
|||
use util::ResultExt;
|
||||
use workspace::Workspace;
|
||||
|
||||
pub(crate) struct SearchSlashCommandFeatureFlag;
|
||||
|
||||
impl FeatureFlag for SearchSlashCommandFeatureFlag {
|
||||
const NAME: &'static str = "search-slash-command";
|
||||
}
|
||||
|
||||
pub(crate) struct SearchSlashCommand;
|
||||
|
||||
impl SlashCommand for SearchSlashCommand {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue