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:
parent
c3edbd7d9a
commit
47628515e1
5 changed files with 91 additions and 16 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue