assistant: Put /docs and /project behind a setting (#16186)

This PR puts the availability of the `/docs` and `/project` slash
commands behind their respective settings.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-08-13 17:32:24 -04:00 committed by GitHub
parent c3edbd7d9a
commit 47628515e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 91 additions and 16 deletions

View file

@ -7,7 +7,6 @@ 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,
@ -19,12 +18,6 @@ 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 {