Put /docs
behind a feature flag (#16000)
This PR puts the `/docs` slash command behind a feature flag. Release Notes: - N/A
This commit is contained in:
parent
bd59af1df5
commit
abb6d40fbf
2 changed files with 22 additions and 4 deletions
|
@ -7,6 +7,7 @@ use anyhow::{anyhow, bail, Result};
|
|||
use assistant_slash_command::{
|
||||
ArgumentCompletion, SlashCommand, SlashCommandOutput, SlashCommandOutputSection,
|
||||
};
|
||||
use feature_flags::FeatureFlag;
|
||||
use gpui::{AppContext, BackgroundExecutor, Model, Task, WeakView};
|
||||
use indexed_docs::{
|
||||
DocsDotRsProvider, IndexedDocsRegistry, IndexedDocsStore, LocalRustdocProvider, PackageName,
|
||||
|
@ -18,6 +19,12 @@ use ui::prelude::*;
|
|||
use util::{maybe, ResultExt};
|
||||
use workspace::Workspace;
|
||||
|
||||
pub(crate) struct DocsSlashCommandFeatureFlag;
|
||||
|
||||
impl FeatureFlag for DocsSlashCommandFeatureFlag {
|
||||
const NAME: &'static str = "docs-slash-command";
|
||||
}
|
||||
|
||||
pub(crate) struct DocsSlashCommand;
|
||||
|
||||
impl DocsSlashCommand {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue